Merge "[BrowserTest] Add prefixes to language screenshot messages"

This commit is contained in:
jenkins-bot 2015-07-21 16:38:34 +00:00 committed by Gerrit Code Review
commit 9924be7acc
4 changed files with 13 additions and 9 deletions

View file

@ -8,5 +8,5 @@ include MediawikiApi
def translate(string)
file = File.read "i18n/#{ENV['LANGUAGE_SCREENSHOT_CODE']}.json"
json = JSON.parse(file)
json["languagescreenshot-#{string.downcase.gsub(' ', '-')}-text"] || ''
json["visualeditor-languagescreenshot-#{string.downcase.gsub(' ', '-')}-text"] || ''
end

View file

@ -4,7 +4,8 @@
"Vikas Yaligar"
]
},
"languagescreenshot-hello-world-text": "Hello, World!",
"languagescreenshot-world-text": "World",
"languagescreenshot-category-earth-text": "Category:Earth"
"visualeditor-languagescreenshot-desc": "Strings for the screenshots in the [[:mw:Help:VisualEditor/User_guide|Visual Editor user guide]].",
"visualeditor-languagescreenshot-hello-world-text": "Hello, World!",
"visualeditor-languagescreenshot-world-text": "World",
"visualeditor-languagescreenshot-category-earth-text": "Category:Earth"
}

View file

@ -4,6 +4,8 @@
"Amire80"
]
},
"languagescreenshot-hello-world-text": "שלום עולם!",
"languagescreenshot-world-text": "עולם"
"visualeditor-languagescreenshot-desc": "מחרוזות עבור צילומי מסך ב [[:mw:Help:VisualEditor/User_guide|מדריך למשתמש של העורך החזותי]].",
"visualeditor-languagescreenshot-hello-world-text": "שלום, עולם!",
"visualeditor-languagescreenshot-world-text": "עולם",
"visualeditor-languagescreenshot-category-earth-text": "קטגוריה:כדור הארץ"
}

View file

@ -4,7 +4,8 @@
"Amire80"
]
},
"languagescreenshot-hello-world-text": "A text to show as content in VisualEditor.",
"languagescreenshot-world-text": "The word 'world' from {{msg-mw|languagescreenshot-hello-world-text}}.",
"languagescreenshot-category-earth-text": "A text used in wikicode to add Category Earth to a article."
"visualeditor-languagescreenshot-desc": "{{desc|name=VisualEditor|url=https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide}}",
"visualeditor-languagescreenshot-hello-world-text": "A text to show as content in VisualEditor.",
"visualeditor-languagescreenshot-world-text": "The word 'world' from {{msg-mw|languagescreenshot-hello-world-text}}.",
"visualeditor-languagescreenshot-category-earth-text": "A text used in wiki syntax to add the category Earth to an article."
}