Skip to content

Commit

Permalink
Merge pull request #14597 from jeabakker/features
Browse files Browse the repository at this point in the history
chore(i18n): update Transifex config to support Elgg 6.0
  • Loading branch information
jdalsem committed Apr 15, 2024
2 parents 11ce0cd + 7a9c3f4 commit fdde1e6
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 48 deletions.
80 changes: 40 additions & 40 deletions .tx/config
Expand Up @@ -2,241 +2,241 @@
host = https://www.transifex.com
lang_map = pt_BR: pt_br, ro_RO: ro_ro, zh-Hans: zh_hans

[o:elgg:p:elgg-core-5:r:engine]
[o:elgg:p:elgg-core-6:r:engine]
file_filter = languages/<lang>.php
source_file = languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:install]
[o:elgg:p:elgg-core-6:r:install]
file_filter = install/languages/<lang>.php
source_file = install/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:activity]
[o:elgg:p:elgg-core-6:r:activity]
file_filter = mod/activity/languages/<lang>.php
source_file = mod/activity/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:blog]
[o:elgg:p:elgg-core-6:r:blog]
file_filter = mod/blog/languages/<lang>.php
source_file = mod/blog/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:bookmarks]
[o:elgg:p:elgg-core-6:r:bookmarks]
file_filter = mod/bookmarks/languages/<lang>.php
source_file = mod/bookmarks/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:ckeditor]
[o:elgg:p:elgg-core-6:r:ckeditor]
file_filter = mod/ckeditor/languages/<lang>.php
source_file = mod/ckeditor/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:custom_index]
[o:elgg:p:elgg-core-6:r:custom_index]
file_filter = mod/custom_index/languages/<lang>.php
source_file = mod/custom_index/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:developers]
[o:elgg:p:elgg-core-6:r:developers]
file_filter = mod/developers/languages/<lang>.php
source_file = mod/developers/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:discussions]
[o:elgg:p:elgg-core-6:r:discussions]
file_filter = mod/discussions/languages/<lang>.php
source_file = mod/discussions/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:externalpages]
[o:elgg:p:elgg-core-6:r:externalpages]
file_filter = mod/externalpages/languages/<lang>.php
source_file = mod/externalpages/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:file]
[o:elgg:p:elgg-core-6:r:file]
file_filter = mod/file/languages/<lang>.php
source_file = mod/file/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:friends]
[o:elgg:p:elgg-core-6:r:friends]
file_filter = mod/friends/languages/<lang>.php
source_file = mod/friends/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:friends_collections]
[o:elgg:p:elgg-core-6:r:friends_collections]
file_filter = mod/friends_collections/languages/<lang>.php
source_file = mod/friends_collections/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:garbagecollector]
[o:elgg:p:elgg-core-6:r:garbagecollector]
file_filter = mod/garbagecollector/languages/<lang>.php
source_file = mod/garbagecollector/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:groups]
[o:elgg:p:elgg-core-6:r:groups]
file_filter = mod/groups/languages/<lang>.php
source_file = mod/groups/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:invitefriends]
[o:elgg:p:elgg-core-6:r:invitefriends]
file_filter = mod/invitefriends/languages/<lang>.php
source_file = mod/invitefriends/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:likes]
[o:elgg:p:elgg-core-6:r:likes]
file_filter = mod/likes/languages/<lang>.php
source_file = mod/likes/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:members]
[o:elgg:p:elgg-core-6:r:members]
file_filter = mod/members/languages/<lang>.php
source_file = mod/members/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:messageboard]
[o:elgg:p:elgg-core-6:r:messageboard]
file_filter = mod/messageboard/languages/<lang>.php
source_file = mod/messageboard/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:messages]
[o:elgg:p:elgg-core-6:r:messages]
file_filter = mod/messages/languages/<lang>.php
source_file = mod/messages/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:pages]
[o:elgg:p:elgg-core-6:r:pages]
file_filter = mod/pages/languages/<lang>.php
source_file = mod/pages/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:profile]
[o:elgg:p:elgg-core-6:r:profile]
file_filter = mod/profile/languages/<lang>.php
source_file = mod/profile/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:reportedcontent]
[o:elgg:p:elgg-core-6:r:reportedcontent]
file_filter = mod/reportedcontent/languages/<lang>.php
source_file = mod/reportedcontent/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:search]
[o:elgg:p:elgg-core-6:r:search]
file_filter = mod/search/languages/<lang>.php
source_file = mod/search/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:site_notifications]
[o:elgg:p:elgg-core-6:r:site_notifications]
file_filter = mod/site_notifications/languages/<lang>.php
source_file = mod/site_notifications/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:system_log]
[o:elgg:p:elgg-core-6:r:system_log]
file_filter = mod/system_log/languages/<lang>.php
source_file = mod/system_log/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:tagcloud]
[o:elgg:p:elgg-core-6:r:tagcloud]
file_filter = mod/tagcloud/languages/<lang>.php
source_file = mod/tagcloud/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:theme_sandbox]
[o:elgg:p:elgg-core-6:r:theme_sandbox]
file_filter = mod/theme_sandbox/languages/<lang>.php
source_file = mod/theme_sandbox/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:thewire]
[o:elgg:p:elgg-core-6:r:thewire]
file_filter = mod/thewire/languages/<lang>.php
source_file = mod/thewire/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:uservalidationbyemail]
[o:elgg:p:elgg-core-6:r:uservalidationbyemail]
file_filter = mod/uservalidationbyemail/languages/<lang>.php
source_file = mod/uservalidationbyemail/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:web_services]
[o:elgg:p:elgg-core-6:r:web_services]
file_filter = mod/web_services/languages/<lang>.php
source_file = mod/web_services/languages/en.php
source_lang = en
type = PHP_ARRAY

[o:elgg:p:elgg-core-5:r:docs-index]
[o:elgg:p:elgg-core-6:r:docs-index]
file_filter = docs/locale/<lang>/LC_MESSAGES/index.po
source_file = docs/locale/pot/index.pot
source_lang = en
type = PO

[o:elgg:p:elgg-core-5:r:docs-admin]
[o:elgg:p:elgg-core-6:r:docs-admin]
file_filter = docs/locale/<lang>/LC_MESSAGES/admin.po
source_file = docs/locale/pot/admin.pot
source_lang = en
type = PO

[o:elgg:p:elgg-core-5:r:docs-appendix]
[o:elgg:p:elgg-core-6:r:docs-appendix]
file_filter = docs/locale/<lang>/LC_MESSAGES/appendix.po
source_file = docs/locale/pot/appendix.pot
source_lang = en
type = PO

[o:elgg:p:elgg-core-5:r:docs-contribute]
[o:elgg:p:elgg-core-6:r:docs-contribute]
file_filter = docs/locale/<lang>/LC_MESSAGES/contribute.po
source_file = docs/locale/pot/contribute.pot
source_lang = en
type = PO

[o:elgg:p:elgg-core-5:r:docs-design]
[o:elgg:p:elgg-core-6:r:docs-design]
file_filter = docs/locale/<lang>/LC_MESSAGES/design.po
source_file = docs/locale/pot/design.pot
source_lang = en
type = PO

[o:elgg:p:elgg-core-5:r:docs-guides]
[o:elgg:p:elgg-core-6:r:docs-guides]
file_filter = docs/locale/<lang>/LC_MESSAGES/guides.po
source_file = docs/locale/pot/guides.pot
source_lang = en
type = PO

[o:elgg:p:elgg-core-5:r:docs-intro]
[o:elgg:p:elgg-core-6:r:docs-intro]
file_filter = docs/locale/<lang>/LC_MESSAGES/intro.po
source_file = docs/locale/pot/intro.pot
source_lang = en
type = PO

[o:elgg:p:elgg-core-5:r:docs-plugins]
[o:elgg:p:elgg-core-6:r:docs-plugins]
file_filter = docs/locale/<lang>/LC_MESSAGES/plugins.po
source_file = docs/locale/pot/plugins.pot
source_lang = en
type = PO

[o:elgg:p:elgg-core-5:r:docs-tutorials]
[o:elgg:p:elgg-core-6:r:docs-tutorials]
file_filter = docs/locale/<lang>/LC_MESSAGES/tutorials.po
source_file = docs/locale/pot/tutorials.pot
source_lang = en
Expand Down
9 changes: 8 additions & 1 deletion engine/classes/Elgg/I18n/ReleaseCleaner.php
Expand Up @@ -180,7 +180,14 @@ protected function cleanupEmptyTranslations(string $translation_file): void {
// something was changed
file_put_contents($translation_file, $contents);

$this->log[] = "Cleaned empty translations from {$translation_file}";
$translations = Includer::includeFile($translation_file);
if (!empty($translations)) {
$this->log[] = "Cleaned empty translations from {$translation_file}";
} else {
unlink($translation_file);

$this->log[] = "Removed empty translation file {$translation_file}";
}
}
}

Expand Down
2 changes: 0 additions & 2 deletions mod/developers/languages/en.php
Expand Up @@ -60,7 +60,6 @@
// entity explorer
'developers:entity_explorer:help' => 'View information about entities and perform some basic actions on them.',
'developers:entity_explorer:guid:label' => 'Enter the guid of the entity to inspect',
'developers:entity_explorer:info' => 'Entity Information',
'developers:entity_explorer:info:attributes' => 'Attributes',
'developers:entity_explorer:info:metadata' => 'Metadata',
'developers:entity_explorer:info:relationships' => 'Relationships',
Expand All @@ -71,7 +70,6 @@
'developers:entity_explorer:view_entity' => 'View this entity on the site',

// inspection
'developers:inspect:help' => 'Inspect configuration of the Elgg framework.',
'developers:inspect:actions' => 'Actions',
'developers:inspect:events' => 'Events',
'developers:inspect:menus' => 'Menus',
Expand Down
3 changes: 0 additions & 3 deletions mod/site_notifications/languages/en.php
Expand Up @@ -33,10 +33,7 @@
'site_notifications:success:delete' => 'Notifications deleted',
'site_notifications:success:mark_read' => 'Notifications marked as read',

'site_notifications:cron:linked_cleanup:start' => 'Site notifications cleaning up notifications without linked entities',
'site_notifications:cron:linked_cleanup:end' => 'Site notifications cleaned up %s notifications without linked entities',
'site_notifications:cron:unread_cleanup:start' => 'Site notifications cleaning up unread notifications older than %s days',
'site_notifications:cron:unread_cleanup:end' => 'Site notifications cleaned up %s unread notifications',
'site_notifications:cron:read_cleanup:start' => 'Site notifications cleaning up read notifications older than %s days',
'site_notifications:cron:read_cleanup:end' => 'Site notifications cleaned up %s read notifications',
);
2 changes: 0 additions & 2 deletions mod/thewire/languages/en.php
Expand Up @@ -51,10 +51,8 @@
* Status messages
*/
'thewire:posted' => "Your message was successfully posted to the wire.",
'thewire:deleted' => "The wire post was successfully deleted.",
'thewire:blank' => "Sorry, you need to enter some text before we can post this.",
'thewire:notsaved' => "Sorry. We could not save this wire post.",
'thewire:notdeleted' => "Sorry. We could not delete this wire post.",

/**
* Notifications
Expand Down

0 comments on commit fdde1e6

Please sign in to comment.