Skip to content

Commit

Permalink
UPDATE: i18n from cucumber repository: gherkin_languages.json
Browse files Browse the repository at this point in the history
* i18n: added amharic language translation (#2111)
* i18n: Georgian (ka) localization fixes (#2041)
* i18n: Update Japanese (ja) translations (#2100)
  • Loading branch information
jenisys committed Nov 3, 2022
1 parent cf5bfdc commit eba4713
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 26 deletions.
42 changes: 29 additions & 13 deletions behave/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@
'scenario_outline': ['Սցենարի կառուցվացքը'],
'then': ['* ', 'Ապա '],
'when': ['* ', 'Եթե ', 'Երբ ']},
'amh': {'and': ['* ', 'እና '],
'background': ['ቅድመ ሁኔታ', 'መነሻ', 'መነሻ ሀሳብ'],
'but': ['* ', 'ግን '],
'examples': ['ምሳሌዎች', 'ሁናቴዎች'],
'feature': ['ስራ', 'የተፈለገው ስራ', 'የሚፈለገው ድርጊት'],
'given': ['* ', 'የተሰጠ '],
'name': 'Amharic',
'native': 'አማርኛ',
'rule': ['ህግ'],
'scenario': ['ምሳሌ', 'ሁናቴ'],
'scenario_outline': ['ሁናቴ ዝርዝር', 'ሁናቴ አብነት'],
'then': ['* ', 'ከዚያ '],
'when': ['* ', 'መቼ ']},
'an': {'and': ['* ', 'Y ', 'E '],
'background': ['Antecedents'],
'but': ['* ', 'Pero '],
Expand Down Expand Up @@ -585,15 +598,15 @@
'scenario_outline': ['Schema dello scenario'],
'then': ['* ', 'Allora '],
'when': ['* ', 'Quando ']},
'ja': {'and': ['* ', 'かつ'],
'ja': {'and': ['* ', '且つ', 'かつ'],
'background': ['背景'],
'but': ['* ', 'しかし', '但し', 'ただし'],
'but': ['* ', '然し', 'しかし', '但し', 'ただし'],
'examples': ['例', 'サンプル'],
'feature': ['フィーチャ', '機能'],
'given': ['* ', '前提'],
'name': 'Japanese',
'native': '日本語',
'rule': ['Rule'],
'rule': ['ルール'],
'scenario': ['シナリオ'],
'scenario_outline': ['シナリオアウトライン', 'シナリオテンプレート', 'テンプレ', 'シナリオテンプレ'],
'then': ['* ', 'ならば'],
Expand All @@ -611,19 +624,22 @@
'scenario_outline': ['Konsep skenario'],
'then': ['* ', 'Njuk ', 'Banjur '],
'when': ['* ', 'Manawa ', 'Menawa ']},
'ka': {'and': ['* ', 'და'],
'ka': {'and': ['* ', 'და ', 'ასევე '],
'background': ['კონტექსტი'],
'but': ['* ', 'მაგ\xadრამ'],
'but': ['* ', 'მაგრამ ', 'თუმცა '],
'examples': ['მაგალითები'],
'feature': ['თვისება'],
'given': ['* ', 'მოცემული'],
'feature': ['თვისება', 'მოთხოვნა'],
'given': ['* ', 'მოცემული ', 'Მოცემულია ', 'ვთქვათ '],
'name': 'Georgian',
'native': 'ქართველი',
'rule': ['Rule'],
'scenario': ['მაგალითად', 'სცენარის'],
'scenario_outline': ['სცენარის ნიმუში'],
'then': ['* ', 'მაშინ'],
'when': ['* ', 'როდესაც']},
'native': 'ქართული',
'rule': ['წესი'],
'scenario': ['მაგალითად', 'მაგალითი', 'მაგ', 'სცენარი'],
'scenario_outline': ['სცენარის ნიმუში',
'სცენარის შაბლონი',
'ნიმუში',
'შაბლონი'],
'then': ['* ', 'მაშინ '],
'when': ['* ', 'როდესაც ', 'როცა ', 'როგორც კი ', 'თუ ']},
'kn': {'and': ['* ', 'ಮತ್ತು '],
'background': ['ಹಿನ್ನೆಲೆ'],
'but': ['* ', 'ಆದರೆ '],
Expand Down
86 changes: 75 additions & 11 deletions etc/gherkin/gherkin-languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1885,13 +1885,15 @@
"ja": {
"and": [
"* ",
"且つ",
"かつ"
],
"background": [
"背景"
],
"but": [
"* ",
"然し",
"しかし",
"但し",
"ただし"
Expand All @@ -1911,7 +1913,7 @@
"name": "Japanese",
"native": "日本語",
"rule": [
"Rule"
"ルール"
],
"scenario": [
"シナリオ"
Expand Down Expand Up @@ -1982,44 +1984,57 @@
"ka": {
"and": [
"* ",
"და"
"და ",
"ასევე "
],
"background": [
"კონტექსტი"
],
"but": [
"* ",
"მაგ­რამ"
"მაგრამ ",
"თუმცა "
],
"examples": [
"მაგალითები"
],
"feature": [
"თვისება"
"თვისება",
"მოთხოვნა"
],
"given": [
"* ",
"მოცემული"
"მოცემული ",
"Მოცემულია ",
"ვთქვათ "
],
"name": "Georgian",
"native": "ქართველი",
"native": "ქართული",
"rule": [
"Rule"
"წესი"
],
"scenario": [
"მაგალითად",
"სცენარის"
"მაგალითი",
"მაგ",
"სცენარი"
],
"scenarioOutline": [
"სცენარის ნიმუში"
"სცენარის ნიმუში",
"სცენარის შაბლონი",
"ნიმუში",
"შაბლონი"
],
"then": [
"* ",
"მაშინ"
"მაშინ "
],
"when": [
"* ",
"როდესაც"
"როდესაც ",
"როცა ",
"როგორც კი ",
"თუ "
]
},
"kn": {
Expand Down Expand Up @@ -3672,5 +3687,54 @@
"* ",
"जेव्हा "
]
},
"amh": {
"and": [
"* ",
"እና "
],
"background": [
"ቅድመ ሁኔታ",
"መነሻ",
"መነሻ ሀሳብ"
],
"but": [
"* ",
"ግን "
],
"examples": [
"ምሳሌዎች",
"ሁናቴዎች"
],
"feature": [
"ስራ",
"የተፈለገው ስራ",
"የሚፈለገው ድርጊት"
],
"given": [
"* ",
"የተሰጠ "
],
"name": "Amharic",
"native": "አማርኛ",
"rule": [
"ህግ"
],
"scenario": [
"ምሳሌ",
"ሁናቴ"
],
"scenarioOutline": [
"ሁናቴ ዝርዝር",
"ሁናቴ አብነት"
],
"then": [
"* ",
"ከዚያ "
],
"when": [
"* ",
"መቼ "
]
}
}
3 changes: 2 additions & 1 deletion features/cmdline.lang_list.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Feature: Command-line options: Use behave --lang-list
Languages available:
af: Afrikaans / Afrikaans
am: հայերեն / Armenian
amh: አማርኛ / Amharic
an: Aragonés / Aragonese
ar: العربية / Arabic
ast: asturianu / Asturian
Expand Down Expand Up @@ -53,7 +54,7 @@ Feature: Command-line options: Use behave --lang-list
it: italiano / Italian
ja: 日本語 / Japanese
jv: Basa Jawa / Javanese
ka: ქართველი / Georgian
ka: ქართული / Georgian
kn: ಕನ್ನಡ / Kannada
ko: 한국어 / Korean
lt: lietuvių kalba / Lithuanian
Expand Down
1 change: 1 addition & 0 deletions issue.features/issue0309.feature
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Feature: Issue #309 -- behave --lang-list fails on Python3
Languages available:
af: Afrikaans / Afrikaans
am: հայերեն / Armenian
amh: አማርኛ / Amharic
an: Aragonés / Aragonese
ar: العربية / Arabic
ast: asturianu / Asturian
Expand Down
4 changes: 3 additions & 1 deletion tasks/develop.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# -----------------------------------------------------------------------------
# CONSTANTS:
# -----------------------------------------------------------------------------
GHERKIN_LANGUAGES_URL = "https://raw.githubusercontent.com/cucumber/cucumber/master/gherkin/gherkin-languages.json"
# DISABLED: OLD LOCATION:
# GHERKIN_LANGUAGES_URL = "https://raw.githubusercontent.com/cucumber/cucumber/master/gherkin/gherkin-languages.json"
GHERKIN_LANGUAGES_URL = "https://raw.githubusercontent.com/cucumber/common/main/gherkin/gherkin-languages.json"


# -----------------------------------------------------------------------------
Expand Down

0 comments on commit eba4713

Please sign in to comment.