-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greek long date format translation with grammatical cases #1106
Comments
I solved this by creating file {
:el => {
:date => {
:month_names => lambda { |date_or_time, opts|
if opts[:format] =~ /(%d|%-d|%e)(.*)(%B)/
[nil, 'Ιανουαρίου', 'Φεβρουαρίου', 'Μαρτίου', 'Απριλίου', 'Μαΐου', 'Ιουνίου', 'Ιουλίου', 'Αυγούστου', 'Σεπτεμβρίου', 'Οκτωβρίου', 'Νοεμβρίου', 'Δεκεμβρίου']
else
[nil, 'Ιανουάριος', 'Φεβρουάριος', 'Μάρτιος', 'Απρίλιος', 'Μάιος', 'Ιούνιος', 'Ιούλιος', 'Αύγουστος', 'Σεπτέμβριος', 'Οκτώβριος', 'Νοέμβριος', 'Δεκέμβριος']
end
}
}
}
} |
Shouldn't this be fixed internally instead of adding a workaround or is this a debatable language thing? (I'm not greek 🤷, and languages have strict rules but that change over time ). Just stumble upon this because I have an email composer with a live preview in a javascript app that uses Anyways, thanks for the workaround! |
Hi @renatodeleao, This is definitely not a debatable thing, I was born and raised in Greece and still live here. Say you have the date "28th of February". in English, February stays the same even tho the 28th day belongs to February in the sentence in Greek the word February changes to become the belonging version of that word, and the of can be removed as it is implied. Greek is so strange. It is also a gendered language so a chair is a she and a table is an it. People talking to people above them or older than them or with specific jobs lawyer/doctor/judge/etc in the first person as plural and in the third person normally. PERFECT LANGUAGE IF YOU HAVE DYSLEXIA! Sorry for the rant. |
@anthony0030 No problem, and thanks for clarifying! EDIT: As Polish, since this is dynamic according the context on where the month name is used, the solution cannot be just tweak the language The code to change should be here: rails-i18n/rails/locale/el.yml Lines 45 to 58 in 6b23fc2
Do you if this rule also applies to the Cyprus greek ( rails-i18n/rails/locale/el-CY.yml Lines 45 to 58 in 6b23fc2
|
According to born a raised greek: svenfuchs#1106 (comment) It aligns the output with native javascript internationalization class Intl.DateTimeFormat, which should strictly by the language rules Co-Authored-By: Anthony Veaudry <[email protected]>
@renatodeleao, I reopened this issue as recommended. |
Same as #284 but for Greek.
The text was updated successfully, but these errors were encountered: