Skip to content

Commit

Permalink
- Renamed activity.php to activity_detail.php
Browse files Browse the repository at this point in the history
-  Added /en/activity_default.php for ActivityDefaultValues.vue translation (langs from elementsJsonSchema did not match )
- Added language translations to ActivityDefaultVue.vue and ActivityDetail.vue
-  Loaded activity_detail_lang and activity_default_lang in app.blade.php
- Added translation lines for 'untitled' and 'iati standard reference' under 'common'  on web.php
  • Loading branch information
PG-Momik committed Dec 28, 2022
1 parent 39e05af commit 6c1344e
Show file tree
Hide file tree
Showing 8 changed files with 346 additions and 313 deletions.
43 changes: 43 additions & 0 deletions lang/en/activity_default.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php

return [
'override_default_values' => [
'label' => "Override default values",
'text' => "Use the following form to change the default values such as currency, language etc for this specific activity. Changing the values here will not change the default values in the setting page.",
],
'currency' => [
'label' => "Currency",
'placeholder' => "Select from dropdown",
'hover_header' => "Default Currency",
'hover_text' => "The currency in which you report your financial transactions. You can later manually change the currency on individual transactions and budgets if required.",
'help_text' => "The currency in which you are reporting your financial transactions for this activity. Select from dropdown "
],
'language' => [
'label' => "Language",
'placeholder' => "Select from dropdown",
'hover_header' => "Default Language",
'hover_text' => "The language in which you provide data on your activities. You can later manually change the language on individual text if required.",
'help_text' => "The language in which you are reporting this activity. Select from dropdown.",
],
'hierarchy' => [
'label' => "Hierarchy",
'placeholder' => "Type default hierarchy here",
'hover_header' => "Default Hierarchy",
'hover_text' => "If you are reporting both programmes (parent activities) and projects (child activities), choose the hierarchical level that most of your activities are at. e.g. parent activity = 1; child activity = 2.<br>If all your activities are at the same level i.e. you have no child activities, then choose 1.",
'help_text' => "IATI allows for activities to be reported hierarchically (eg. parent - child ; programme - project - sub-project, etc). For activities at lower levels, their hierarchy can be edited as you are entering them. ",
],
'budget_not_provided' => [
'label' => "Budget not provided",
'placeholder' => "select budget not provided type here",
'hover_header' => "Budget not provided",
'hover_text' => "A code indicating the reason why this activity does not contain any iati-activity/budget elements. The attribute MUST only be used when no budget elements are present."
],
'humanitarian' => [
'label' => "Humanitarian",
'placeholder' => "Select Humanitarian here",
'hover_header' => "Humanitarian",
'hover_text' => "Add a 'Humanitarian Flag' to every activity that your organisation publishes data on. This means that your organisation identifies all their activities as wholly or partially addressing a humanitarian crisis or multiple crises. You can later manually add or remove a Humanitarian Flag on individual activities if required."
],
'cancel_label' => "Cancel",
'save_default_values_label' => "Save default values"
];
38 changes: 18 additions & 20 deletions lang/en/activity.php → lang/en/activity_detail.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?php

return [
'your_activities_label' => "Your Activities_en",
//Top left card lines
'publishing_progress' => [
'label' => 'Publishing Progress',
'hover_text' => 'The IATI Standard contains a wide range of data elements and your organisation is encouraged to (at least) publish data in elements marked as “Core”.'
],
'elements' => [
'label' => 'Elements',
'label' => 'Elements_en',
'hover_text' => 'Each “Element” represents a basic unit of information in the IATI Standard. Click on each element listed below and complete all data fields contained in the element. For each element, you will find its technical hover_text, which is labelled as “IATI Standard Reference” and helpful guidance on the data you are required to provide.',
],
'core' => [
Expand All @@ -22,31 +23,28 @@

//Lines for the four hover-able buttons and section legend.
'identification' => [
'label' => 'Identification',
'uppercase' => 'IDENTIFICATION',
'hover_text' => 'You cannot publish an activity until all the mandatory fields have been filled.',
'label' => 'Identification',
'uppercase' => 'IDENTIFICATION',
],
'basic_activity_information' => [
'label' => 'Basic Activity Information',
'uppercase' => 'BASIC ACTIVITY INFORMATION',
'hover_text' => 'You cannot publish an activity until all the mandatory fields have been filled.',
'label' => 'Basic Activity Information',
'uppercase' => 'BASIC ACTIVITY INFORMATION',
],
'classifications' => [
'label' => 'Classifications',
'uppercase' => 'CLASSIFICATIONS',
'hover_text' => 'You cannot publish an activity until all the mandatory fields have been filled.',
'label' => 'Classifications',
'uppercase' => 'CLASSIFICATIONS',
],
'financial' => [
'label' => 'Financial',
'uppercase' => 'FINANCIAL',
'hover_text' => 'You cannot publish an activity until all the mandatory fields have been filled.',
'label' => 'Financial',
'uppercase' => 'FINANCIAL',
],

'complete_all_core_label' => 'Complete all core elements to get 100% score',
'search_elements_placeholder' => 'Search elements to add/edit',
'all_elements_label' => 'All Elements',
'uc_publish_label' => 'PUBLISH',
'uc_override_this_activity_label' => 'OVERRIDE THIS ACTIVITY\'S DEFAULT VALUES',
'no_activity_has_been_added_label' => "No activity has been added yet.",
'click_on_button_to_add_new_label' => "Click on the button below to add a new activity"
'complete_all_core_label' => 'Complete all core elements to get 100% score',
'search_elements_placeholder' => 'Search elements to add/edit',
'all_elements_label' => 'All Elements',
'uc_publish_label' => 'PUBLISH',
'uc_override_this_activity_label' => 'OVERRIDE THIS ACTIVITY\'S DEFAULT VALUES',
'no_activity_has_been_added_label' => 'No activity has been added yet.',
'click_on_button_to_add_new_label' => 'Click on the button below to add a new activity',
'you_cannot_publish_an_activity_until_label' => 'You cannot publish an activity until all the mandatory fields have been filled.',
];
5 changes: 3 additions & 2 deletions lang/en/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
'core' => 'Core',
'all_elements' => 'All Elements',
'mandatory_fields' => 'Mandatory fields',
'iati_standard_reference' => 'IATI Standard Reference'
'iati_standard_reference' => 'IATI Standard Reference',
'untitiled' => "Untitled"

],

Expand Down Expand Up @@ -169,7 +170,7 @@

/*----------------------------------------------------------------publishing-checklist page--------------------------------------------------------------------------------------------------*/
'publishing_checklist_page' => [
'publishing_checklist' => 'Publishing Checklist',
'publishing_checklist' => 'Publishing Checklist',
'organisations_using_iati_label' => 'Organisations using IATI Publisher need to take the following steps to publish your data: ',

'register_a_publisher_header' => 'Register a Publisher Account',
Expand Down
Loading

0 comments on commit 6c1344e

Please sign in to comment.