Skip to content

Conversation

@MorrisJobke
Copy link
Member

  • 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 Too specific locale fi_FI #869

@kohtala @rullzer

I will also update all the transifex files in all apps to match the settings here.

@MorrisJobke MorrisJobke added the 3. to review Waiting for reviews label Sep 12, 2016
@MorrisJobke MorrisJobke added this to the Nextcloud 11.0 milestone Sep 12, 2016
@mention-bot
Copy link

@MorrisJobke, thanks for your PR! By analyzing the annotation information on this pull request, we identified @DeepDiver1975, @PVince81 and @nickvergessen to be potential reviewers

@rullzer
Copy link
Member

rullzer commented Sep 12, 2016

  • Updated autoloader.

👍

@kohtala
Copy link

kohtala commented Sep 12, 2016

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?

@MorrisJobke
Copy link
Member Author

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.

@MorrisJobke MorrisJobke added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Sep 12, 2016
@MorrisJobke MorrisJobke self-assigned this Sep 12, 2016
l10n/.tx/config Outdated
[main]
host = https://www.transifex.com
lang_map = ja_JP: ja
lang_map = ja_JP: ja, fi_FI: fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does every app need this change? or is it good enough, once per project?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every app needs this, but I will do that once this is in.

@LukasReschke
Copy link
Member

@MorrisJobke Is this still interesting? If not we should probably close this 😉

@MorrisJobke
Copy link
Member Author

@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.

@LukasReschke
Copy link
Member

Yes. One needs to write the migration code to change the users language to fi if it was fi_FI.

morris

@blizzz
Copy link
Member

blizzz commented Feb 20, 2017

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.

@nickvergessen
Copy link
Member

Or simply run a query update oc_preferences set value =“fi“ where value = “fi_FI“ and key =“lang“ and app =“settings“ ? No need to loop over users or create a background job....

@blizzz
Copy link
Member

blizzz commented Feb 21, 2017

@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>
@MorrisJobke MorrisJobke force-pushed the improve-finish-l10n branch from 953309e to 1bcd396 Compare March 2, 2017 04:36
@MorrisJobke MorrisJobke added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Mar 2, 2017
@MorrisJobke MorrisJobke removed their assignment Mar 2, 2017
@MorrisJobke
Copy link
Member Author

Ready for review.

@codecov-io
Copy link

Codecov Report

Merging #1377 into master will decrease coverage by -0.01%.
The diff coverage is 54.16%.

@@             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
Impacted Files Coverage Δ Complexity Δ
lib/private/Repair.php 30.98% <0%> (-0.45%) 19 <0> (ø)
lib/private/Repair/NC12/UpdateLanguageCodes.php 56.52% <56.52%> (ø) 4 <4> (?)
lib/private/Server.php 92.61% <0%> (-0.17%) 120% <0%> (ø)
lib/private/Security/CertificateManager.php 93.81% <0%> (+1.03%) 38% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a4067a...1bcd396. Read the comment docs.

Signed-off-by: Joas Schilling <coding@schilljs.com>
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extended the tests for a case with more than 1 user and fixed the table name in the output

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@nickvergessen nickvergessen merged commit 0ef15f9 into master Mar 2, 2017
@nickvergessen nickvergessen deleted the improve-finish-l10n branch March 2, 2017 11:44
@MorrisJobke
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Too specific locale fi_FI

9 participants