Change language code from fi_FI to fi#1377
Conversation
|
@MorrisJobke, thanks for your PR! By analyzing the annotation information on this pull request, we identified @DeepDiver1975, @PVince81 and @nickvergessen to be potential reviewers |
👍 |
|
Hi. Thanks for working on this. In the #869 I had listed 18th Aug that this same problem seems to be with several other languages as well. I prepared the list for other languages for lang_map as af_zA:af, am_ET:am, bg_BG:bg, cs_CZ:cs, cy_GB:cy, fy_NL:fy, hu_HU:hu, ka_GE:ka, ku_IQ:ku, lt_LT:lt, ms_MY:ms, mt_MT:mt, my_MM:my, nb_NO:nb, nn_NO:nn, si_LK:si, sk_SK:sk, sw_KE:sw, tg_TJ:tg, th_TH:th, tl_PH:tl, ur_PK:ur. Also, would you think /l10n/rm-old.sh, /settings/languageCodes.php and /settings/personal.php need an update as well? |
Thanks. I will check this. |
l10n/.tx/config
Outdated
| [main] | ||
| host = https://www.transifex.com | ||
| lang_map = ja_JP: ja | ||
| lang_map = ja_JP: ja, fi_FI: fi |
There was a problem hiding this comment.
does every app need this change? or is it good enough, once per project?
There was a problem hiding this comment.
Every app needs this, but I will do that once this is in.
|
@MorrisJobke Is this still interesting? If not we should probably close this 😉 |
Yes. One needs to write the migration code to change the users language to fi if it was fi_FI. |
|
Can be mostly guttenberged from DAV migration, see https://github.com/nextcloud/server/blob/master/apps/dav/lib/Migration/ValueFixInsert.php and https://github.com/nextcloud/server/blob/master/apps/dav/lib/Migration/ValueFix.php Basically it registers a background job per (known) user and applies some logic and the actual implementation. |
|
Or simply run a query |
|
@nickvergessen ah, of course, this is most reasonably :) |
* then the language is not that specific and get also matched for fi * fallback from fi_FI to fi is supported - the other way around not * contains repair script * contains tests for repair script * fixes #869 Order results to make postgres happy Signed-off-by: Morris Jobke <hey@morrisjobke.de>
953309e to
1bcd396
Compare
|
Ready for review. |
Codecov Report
@@ Coverage Diff @@
## master #1377 +/- ##
============================================
- Coverage 54.29% 54.29% -0.01%
- Complexity 20926 20930 +4
============================================
Files 1297 1298 +1
Lines 79830 79854 +24
Branches 1254 1254
============================================
+ Hits 43343 43356 +13
- Misses 36487 36498 +11
Continue to review full report at Codecov.
|
Signed-off-by: Joas Schilling <coding@schilljs.com>
nickvergessen
left a comment
There was a problem hiding this comment.
Extended the tests for a case with more than 1 user and fixed the table name in the output
|
I need to look into fixing the backports of the wrong translations or we simply backport this one here. 2282e61 Maybe I just copy over the now renamed stuff to the old version for all the changed languages in the translation script. |
@kohtala @rullzer
I will also update all the transifex files in all apps to match the settings here.