Commit Graph
25 Commits
Author SHA1 Message Date
Alexis Degrugillier d7d39f0736 Change how updating a key works (#3072)
Before, to update a key from the reference language (en), the key was deleted
then created. This way was unproductive for all keys already translated.
Now, the key is updated in all untranslated languages.

See https://github.com/FreshRSS/FreshRSS/pull/3068#issuecomment-646868894
2020-06-22 13:24:55 +02:00
baaef3d9f4 3041 en us localization (#3060)
* Initial locaization from international english to United States English

examples:
favourite -> favorite
optimise -> optimize
occured -> occurred
labelled -> labelled
ok -> okay

* More spelling corrections

default English occured->occurred
cancelled -> canceled
labelled -> labeled

* Undo key spelling change

* i18n format and admin.php translating

* Translating admin.php

* more admin.php translating

* Translating conf.php

* Translating feedback.php and format command

* Translating gen.php

* Translating index.php

* Translating sub.php

* Translating user.php

* Translating install.php

* Fix 'there is no idle feed'

* FIx 'there is no feed to refresh"

* Add i18n manipulation option to ignore all unmodified translation keys

* Lint fixes

* Update keys newly add since original branch

* Revert unintenntional ru 'translation'

* Code review revisions

* Fix leading whitespace in ignore_unmodified api

* Update app/i18n/en-us/gen.php

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>

* Update app/i18n/en-us/admin.php

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>

* Update app/i18n/en-us/admin.php

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>

* Update error message for Make ignore-unmodified keys to use Make syntax.
(inline with 3062) Also rename ignore-unmodifed-key ->
ignore-unmodified-keys

* Replace makefile leading spaces with tabs

* Code review revisions

* Retab added php functions

* Missed tab replace

* Remove stray '-> todo'

Co-authored-by: root <root@x-freshrss.lan.ewsandor.com>
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2020-06-19 22:59:27 +02:00
Alexis Degrugillier 7f76c8e553 Add a language reference while adding a new one (#3044)
Before, all new languages were generated from the reference language which
was English. It makes sense for new languages but not so much for new language
flavor (ex: French Canadian versus French French)
Now, there is a way to select the reference language while adding a new one.
2020-06-10 23:14:47 +02:00
Alexis Degrugillier 8c4d71da2e Add missing translations (#3034)
* Add missing translations

* Add a simple way to check if an i18n key exists

There is a rule in the makefile to access it directly
2020-06-05 20:16:04 +02:00
Frans de Jonge 015cd1e06e [i18n] Update Dutch translation for 1.16.1 (#3005)
See <https://github.com/FreshRSS/FreshRSS/issues/2994>.
2020-05-26 17:04:59 +02:00
Marien Fressinaud 8487fa6248 Reformat i18n correctly (#2976)
* Ignore i18n gen.dir key

* Add a makefile target to update an i18n key

* Mark some i18n keys to ignore

* Reformat i18n files correctly

* Make i18n keys sort case-sensitive

Calling `make i18n-format` was always inverting 4 lines:

- gen.date.dec with gen.date.Dec
- and gen.date.nov with gen.date.Nov

I don't know why these particular lines and not the others, but it
appeared the sort function was case insensitive due to the
`SORT_FLAG_CASE` flag passed to the `ksort` function. Removing this flag
makes the calls to the formatter idempotent and more reliable.

Unfortunately it moves a lot of lines since the `_` character is
considered differently.

* Check i18n files are correctly formatted on Travis
2020-05-15 17:31:21 +02:00
石渠清心 d6b9237630 Update zh-cn (i18n) (#2730) 2019-12-28 12:30:47 +01:00
Alexis Degrugillier d13a8a0eb1 Add user language display
When managing users, I've added the language they selected to be able
to communicate with them with the selected language (if I know it).
It could be useful when managing a community or a paid service.
2019-12-07 12:57:52 +01:00
Alexis Degrugillier 3e49b44839 Update i18n cli tools (#2673)
* Update i18n cli tools

Few things were bugging me when using the cli tool for i18n. So I've modified
the tools to be easier to use.

First, the tool automatically adds missing keys to all languages. This way, we
always have all keys in all languages.
Second, the tool detects all untranslated keys and adds automatically the todo
comment after the value.
Third, when adding a new key, the key is pushed to all languages at once. There
is no need to duplicate it manually. Thus making the duplication process obsolete.
Fourth, translation and ignore keys are manipulated at the same time. Thus we
don't have obsolete ignored strings anymore.

* Add i18n rules

I find that having the common rules in the Makefile is easier to use,
as long as you know they are here. As it is self documented, people
will see the new rules when using make.

* Use long parameters in Makefile

I find that using long parameters in scripts makes it easier to understand
what's going on. So I've switched all short parameters to long one.

* Format all i18n files

I've used the updated version of the cli tools to have some output
that can be consistently formated. This commit is a huge formating
commit. Nothing was added but some comments were removed in the
process.
2019-12-04 08:27:39 +01:00
wtoscer 5f4daa9c63 Add lemmy share (#2510) 2019-08-29 17:25:04 +02:00
Frans de Jonge 0ec7f53153 [i18n] Finish Dutch translation (#2503)
Add a couple of new strings, minor grammar and style improvements, and ignore everything that should be ignored for 100 %.
2019-08-21 09:27:32 +02:00
Tibor Repček 520676893f [i18n] Slovak (slovenčina) - added new language (#2497) 2019-08-20 21:20:57 +02:00
Gaurav Thakur e99e4353d4 Remove Google+ support as it is dead. (#2464) 2019-07-30 16:34:04 +02:00
Alexis Degrugillier 8be28399ef Fix quote escaping on CLI (#2355)
for translation manipulations
2019-04-07 10:14:51 +02:00
hoilc e6888bbf23 update zh-cn (i18n) (#2280) 2019-03-18 10:55:50 +01:00
Seokseong Jeon 3b3accf6ce i18n Korean (#2242) 2019-02-05 15:05:40 +01:00
Quentí 396c714df9 [i18n] Add the Occitan locale (#2110)
* Create oc.php

L27 : ajout de l’occitan

* Create admin.php

* Create conf.php

* Create feedback.php

* Create gen.php

* Create index.php

* Create install.php

* Create sub.php

* Delete conf.php

* Create conf.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update gen.php

* Update oc.php

* Update admin.php

* Update conf.php

* Update feedback.php

* Update gen.php

* Update index.php

* Update install.php

* Update sub.php

* Update oc.php
2018-11-04 13:46:08 +01:00
Alexis Degrugillier f4da012940 Add option to ignore keys in cli tool 2018-03-11 10:53:32 +01:00
Alexis Degrugillier 2f98978f6d Improve error catching 2018-03-10 16:32:35 +01:00
Alexis Degrugillier 67c173f79b Add new tools to manipulate translations (#1818)
I've added a tool to add a new translation for a specific key and language.
I've added a tool to format the i18n files.

This is one of the steps to improve the translation process.
2018-03-04 14:41:40 +01:00
Alexis Degrugillier a2312a608a Improve translating tools (#1808)
To ease the use of the translating tools, I've added a formatting method to
keep the output files identicals. This will reduce the amount of time needed
to handle translations.
2018-03-03 10:26:54 +01:00
Seokseong Jeon fb541b1bac [i18n] Translated to Korean (#1776) 2018-01-31 10:06:45 +01:00
hoilc b285a83c65 [i18n] Add ignore/zh-cn and update simplified Chinese translation (#1769)
* update Simplified Chinese translation

* update the description of buttons #1766

* trim space to pass PHPCS
2018-01-16 17:41:49 +01:00
Frans de Jonge 568eccd3a8 [i18n] Add translation ignore/nl (#1752) 2017-12-25 22:48:21 +01:00
Alexis Degrugillier 05b1901fcd Move translation tools into the cli folder (#1673)
Translation tools must be used on cli. It is better to have them in the cli folder.
2017-11-04 21:17:08 +01:00