mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 04:56:03 +03:00
[GH-ISSUE #132] Remove duplicate keys #109
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DylanMeeus on GitHub (Oct 6, 2016).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/132
There are some duplicate keys in the i18n files, sometimes with the same case.
Created a small script to check duplicates: https://github.com/DylanMeeus/PHPi18n-duplicate-checker/blob/master/checker.hs
output for the en.php file
(key, # occurance respecting case, # occurance ignoring case)
(a 1 means 'no duplicate', 2,3,... means x duplicates)
One (New Folder Name) is in there twice with the same case.
I'm assuming the other language files are based on the English and have the same duplicate keys but I did not check that yet.
@jasonmunro commented on GitHub (Oct 6, 2016):
There may be some variance in the other lang files, but in general they are based on the English one. Thanks for helping to clean this up, it's very appreciated!
@DylanMeeus commented on GitHub (Oct 6, 2016):
It seems that some keys need to be upper/lower cased? Though it is not consistent, for example the keys in the french file:
All => 'Tout'
all => 'tout'
But in spanish
All => Todo
all => Todo
(Just an example, I think it was that key). Do you want me to keep both in that case?
@jasonmunro commented on GitHub (Oct 10, 2016):
We need to correlate the keys in the language file with the places they are used in the code, and then modify the calls in the code to only use one of them, then we can remove the other from the language file. Insofar as capitalization in the values, that is up to the translator and does not break anything so I'm not too worried about it.
I will work through your original list and update the calling code and the en.php file to eliminate the duplicates. Then we can apply that to the other language files.
@jasonmunro commented on GitHub (Oct 10, 2016):
I have gone through the list and cleaned up the code and English lang file to remove all the duplicates you found (I think!). I would like to have one "version" of any given string, so no duplicates with only case differences if we can. I would love it if you could pull the latest and re-analyze for duplicates. If it looks good I will sync the other lang files.
Thanks!
@DylanMeeus commented on GitHub (Oct 10, 2016):
I have pulled the latest master and ran the script again. No duplicates are found in the English language file. 👍
@jasonmunro commented on GitHub (Oct 11, 2016):
Excellent, thanks! I will get the other files synced up to the English file today.
@jasonmunro commented on GitHub (Oct 11, 2016):
Just synced all the other files. I think we are good to go on this. Thanks again for the help!