diff options
| author | 2022-01-08 08:00:26 -0500 | |
|---|---|---|
| committer | 2022-01-08 14:00:26 +0100 | |
| commit | 127b7f0a3aad7012055c058e8aba0d27192a8cbc (patch) | |
| tree | 8ec9a5948672e702c944c202f78294b81104582f /app/i18n/en | |
| parent | ed19445f74c30854c60873cd1df1c38e15fc316b (diff) | |
Change i18n process (#4131)
Before, the ignore info were stored in a different file which was a bit cumbersome
for new comers. Now, this info is stored directly in the translation file as a
comment.
Before, there was no way of telling translators that a previously translated string
was in need of a new translation. Now, the dirty information is there to convey that
info.
Diffstat (limited to 'app/i18n/en')
| -rw-r--r-- | app/i18n/en/admin.php | 10 | ||||
| -rw-r--r-- | app/i18n/en/conf.php | 10 | ||||
| -rw-r--r-- | app/i18n/en/feedback.php | 10 | ||||
| -rw-r--r-- | app/i18n/en/gen.php | 10 | ||||
| -rw-r--r-- | app/i18n/en/index.php | 10 | ||||
| -rw-r--r-- | app/i18n/en/install.php | 10 | ||||
| -rw-r--r-- | app/i18n/en/sub.php | 10 | ||||
| -rw-r--r-- | app/i18n/en/user.php | 10 |
8 files changed, 80 insertions, 0 deletions
diff --git a/app/i18n/en/admin.php b/app/i18n/en/admin.php index 113e5daac..44041dc12 100644 --- a/app/i18n/en/admin.php +++ b/app/i18n/en/admin.php @@ -1,5 +1,15 @@ <?php +/******************************************************************************/ +/* Each entry of that file can be associated with a comment to indicate its */ +/* state. When there is no comment, it means the entry is fully translated. */ +/* The recognized comments are (comment matching is case-insensitive): */ +/* + TODO: the entry has never been translated. */ +/* + DIRTY: the entry has been translated but needs to be updated. */ +/* + IGNORE: the entry does not need to be translated. */ +/* When a comment is not recognized, it is discarded. */ +/******************************************************************************/ + return array( 'auth' => array( 'allow_anonymous' => 'Allow anonymous reading of the default user\'s articles (%s)', diff --git a/app/i18n/en/conf.php b/app/i18n/en/conf.php index a732e2cb7..91d5d5995 100644 --- a/app/i18n/en/conf.php +++ b/app/i18n/en/conf.php @@ -1,5 +1,15 @@ <?php +/******************************************************************************/ +/* Each entry of that file can be associated with a comment to indicate its */ +/* state. When there is no comment, it means the entry is fully translated. */ +/* The recognized comments are (comment matching is case-insensitive): */ +/* + TODO: the entry has never been translated. */ +/* + DIRTY: the entry has been translated but needs to be updated. */ +/* + IGNORE: the entry does not need to be translated. */ +/* When a comment is not recognized, it is discarded. */ +/******************************************************************************/ + return array( 'archiving' => array( '_' => 'Archiving', diff --git a/app/i18n/en/feedback.php b/app/i18n/en/feedback.php index 99821ddb7..9cecd92a3 100644 --- a/app/i18n/en/feedback.php +++ b/app/i18n/en/feedback.php @@ -1,5 +1,15 @@ <?php +/******************************************************************************/ +/* Each entry of that file can be associated with a comment to indicate its */ +/* state. When there is no comment, it means the entry is fully translated. */ +/* The recognized comments are (comment matching is case-insensitive): */ +/* + TODO: the entry has never been translated. */ +/* + DIRTY: the entry has been translated but needs to be updated. */ +/* + IGNORE: the entry does not need to be translated. */ +/* When a comment is not recognized, it is discarded. */ +/******************************************************************************/ + return array( 'access' => array( 'denied' => 'You don’t have permission to access this page', diff --git a/app/i18n/en/gen.php b/app/i18n/en/gen.php index cec389798..6d5fd58a8 100644 --- a/app/i18n/en/gen.php +++ b/app/i18n/en/gen.php @@ -1,5 +1,15 @@ <?php +/******************************************************************************/ +/* Each entry of that file can be associated with a comment to indicate its */ +/* state. When there is no comment, it means the entry is fully translated. */ +/* The recognized comments are (comment matching is case-insensitive): */ +/* + TODO: the entry has never been translated. */ +/* + DIRTY: the entry has been translated but needs to be updated. */ +/* + IGNORE: the entry does not need to be translated. */ +/* When a comment is not recognized, it is discarded. */ +/******************************************************************************/ + return array( 'action' => array( 'actualize' => 'Update feeds', diff --git a/app/i18n/en/index.php b/app/i18n/en/index.php index 4d989545f..d4c201cdb 100644 --- a/app/i18n/en/index.php +++ b/app/i18n/en/index.php @@ -1,5 +1,15 @@ <?php +/******************************************************************************/ +/* Each entry of that file can be associated with a comment to indicate its */ +/* state. When there is no comment, it means the entry is fully translated. */ +/* The recognized comments are (comment matching is case-insensitive): */ +/* + TODO: the entry has never been translated. */ +/* + DIRTY: the entry has been translated but needs to be updated. */ +/* + IGNORE: the entry does not need to be translated. */ +/* When a comment is not recognized, it is discarded. */ +/******************************************************************************/ + return array( 'about' => array( '_' => 'About', diff --git a/app/i18n/en/install.php b/app/i18n/en/install.php index 7cb302af2..b2c55e2dd 100644 --- a/app/i18n/en/install.php +++ b/app/i18n/en/install.php @@ -1,5 +1,15 @@ <?php +/******************************************************************************/ +/* Each entry of that file can be associated with a comment to indicate its */ +/* state. When there is no comment, it means the entry is fully translated. */ +/* The recognized comments are (comment matching is case-insensitive): */ +/* + TODO: the entry has never been translated. */ +/* + DIRTY: the entry has been translated but needs to be updated. */ +/* + IGNORE: the entry does not need to be translated. */ +/* When a comment is not recognized, it is discarded. */ +/******************************************************************************/ + return array( 'action' => array( 'finish' => 'Complete installation', diff --git a/app/i18n/en/sub.php b/app/i18n/en/sub.php index 57fdba557..16ef7c3f7 100644 --- a/app/i18n/en/sub.php +++ b/app/i18n/en/sub.php @@ -1,5 +1,15 @@ <?php +/******************************************************************************/ +/* Each entry of that file can be associated with a comment to indicate its */ +/* state. When there is no comment, it means the entry is fully translated. */ +/* The recognized comments are (comment matching is case-insensitive): */ +/* + TODO: the entry has never been translated. */ +/* + DIRTY: the entry has been translated but needs to be updated. */ +/* + IGNORE: the entry does not need to be translated. */ +/* When a comment is not recognized, it is discarded. */ +/******************************************************************************/ + return array( 'api' => array( 'documentation' => 'Copy the following URL to use it within an external tool.', diff --git a/app/i18n/en/user.php b/app/i18n/en/user.php index ea602b072..d0645f4f8 100644 --- a/app/i18n/en/user.php +++ b/app/i18n/en/user.php @@ -1,5 +1,15 @@ <?php +/******************************************************************************/ +/* Each entry of that file can be associated with a comment to indicate its */ +/* state. When there is no comment, it means the entry is fully translated. */ +/* The recognized comments are (comment matching is case-insensitive): */ +/* + TODO: the entry has never been translated. */ +/* + DIRTY: the entry has been translated but needs to be updated. */ +/* + IGNORE: the entry does not need to be translated. */ +/* When a comment is not recognized, it is discarded. */ +/******************************************************************************/ + return array( 'email' => array( 'feedback' => array( |
