This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lh-check {min: 2, max:-3, placeholders:false, terms: lingohub} | |
lh-check {terms:[lingohub, Github]} | |
lh-check { min: %60 } | |
lh-check {placeholders:true, terms: [lingohub, Github], min: +5, max:110%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# located in the navbar | |
# lh-check { max: 25, placeholders: true } | |
# should not be wrapped | |
hello_user = Hello {username} | |
# located on the landing page | |
# lh-check { min: 90%, max: 110%, terms: [iOS, Android] } | |
localize_bullet = Localize your product on iOS, Android or any other major platform. We support all files and formats, streamlined and hassle-free. | |
# this description and the following lingCheck belong to the commented out translation, so both will be ignored on import |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this comment is ignored because it is not directly followed by a key-value pair | |
en: | |
# this comment is also ignored, | |
# because it is followed by a key that has children nodes | |
header: | |
hello_user : Hello %{username} | |
# comments are treated as translation descriptions | |
# belonging to the key-value pair that follows | |
# lingochecks as well |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hello_user" : "Hello {username}", | |
"_welcome.comment" : "keys with .comment suffix are treated as translation descriptions belonging to that key-value pair", | |
"_welcome.comment" : "multiple comments for the same key-value pair are allowed.", | |
"welcome" : "Welcome to Lingohub! this is your {visit_count} visit.", | |
"_welcome.comment" : "lh-check {placeholders:true, terms: Lingohub, min: +5, max:110%}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<root> | |
<data name="Common_AuthenicationFailed" xml:space="preserve"> | |
<value>Authentifikation fehlgeschlagen</value> | |
</data> | |
<!-- single line comment --> | |
<data name="Common_Billable" xml:space="preserve"> | |
<value>Verrechenbar</value> | |
</data> | |
<!-- multi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lh-check { linebreaks: false } | |
hello_user = Hello %{username} | |
# linebreak lh-check in combination with other lh-checks | |
# lh-check { min: 90%, max: 110%, terms: [iOS, Android], linebreaks: true } | |
localize = Localize your product on iOS, Android or any other major platform. \n | |
We support all files and formats, streamlined and hassle-free. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
de | |
images | |
products | |
main.html | |
en | |
images | |
products | |
main.html | |
fr | |
images |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$GLOBALS["messages"] = array ( | |
'en'=> array( | |
'Monday' => 'Monday', | |
'Tuesday' => 'Tuesday', | |
'Wednesday' => 'Wednesday', | |
'Thursday' => 'Thursday', | |
'Friday' => 'Friday', | |
'Saturday' => 'Saturday', | |
'Sunday' => 'Sunday' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Monday":"Montag", | |
"Tuesday":"Dienstag", | |
"Wednesday":"Mittwoch", | |
"Thursday:"Donnerstag", | |
"Friday":"Freitag", | |
"Saturday":"Samstag", | |
"Sunday":"Sonntag" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// the original of this code can be found on: | |
// http://www.mind-it.info/2010/02/22/a-simple-approach-to-localization-in-php/ | |
function localize($phrase) { | |
/* Static keyword is used to ensure the file is loaded only once */ | |
static $translations = NULL; | |
if (is_null($translations)) { | |
$lang_file = '/lang/' . $_SESSION["locale"] . '.txt'; | |
/* If no instance of $translations has occured load the language file */ |
OlderNewer