Skip to content

Commit

Permalink
ENH Make UI strings translatable (#68)
Browse files Browse the repository at this point in the history
Also add to transifex.
  • Loading branch information
GuySartorelli authored Mar 9, 2023
1 parent 0f8d047 commit 1de1631
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[main]
host = https://www.transifex.com

[o:silverstripe:p:silverstripe-composer-update-checker:r:master]
file_filter = lang/<lang>.yml
source_file = lang/en.yml
source_lang = en
type = YML

Empty file added lang/_manifest_exclude
Empty file.
4 changes: 4 additions & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
en:
BringYourOwnIdeas\Maintenance\Model\Package:
db_AvailableVersion: Available
db_LatestVersion: Latest
4 changes: 2 additions & 2 deletions src/Extensions/ComposerUpdateExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class ComposerUpdateExtension extends DataExtension
];

private static $summary_fields = [
'AvailableVersion' => 'Available',
'LatestVersion' => 'Latest',
'AvailableVersion',
'LatestVersion'
];

/**
Expand Down

0 comments on commit 1de1631

Please sign in to comment.