Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(docs): correct all occurrences of language names PR #1243
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalo-roberto-diaz authored and knalli committed Oct 7, 2015
1 parent 58a91a6 commit 5f89d55
Show file tree
Hide file tree
Showing 72 changed files with 343 additions and 343 deletions.
2 changes: 1 addition & 1 deletion demo/ex10_translate-cloak.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h2 translate>load.static.SUBHEADER</h2>
"HEADER" : "The module can lazzy load a translations table when it's needed.",
"SUBHEADER" : "So, you can load only those languages, which will be used.",
"TEXT" : "This is only some text to fill the space.",
"ONLY_EN": "only english",
"ONLY_EN": "only English",
"EN_RU": "EN and RU - EN Edition"
}
}
Expand Down
2 changes: 1 addition & 1 deletion demo/l10n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"TITLE" : "How to load static files?",
"HEADER" : "The module can lazzy load a translations table when it's needed.",
"SUBHEADER" : "So, you can load only those languages, which will be used.",
"ONLY_EN": "only english",
"ONLY_EN": "only English",
"EN_RU": "EN and RU - EN Edition"
},
"predefined" : {
Expand Down
2 changes: 1 addition & 1 deletion demo/l10n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"HEADER" : "The module can lazzy load a translations table when it's needed.",
"SUBHEADER" : "So, you can load only those languages, which will be used.",
"TEXT" : "This is only some text to fill the space.",
"ONLY_EN": "only english",
"ONLY_EN": "only English",
"EN_RU": "EN and RU - EN Edition",
"ARRAY": [
"Item 1",
Expand Down
2 changes: 1 addition & 1 deletion demo/l10n/partial/moduleA/en_US.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"load.partial.moduleA": {
"text": "Module A (english)"
"text": "Module A (English)"
}
}
2 changes: 1 addition & 1 deletion demo/l10n/partial/moduleB/en_US.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"load.partial.moduleB": {
"text": "Module B (english)"
"text": "Module B (English)"
}
}
24 changes: 12 additions & 12 deletions docs/content/guide/de/07_multi-language.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ hast. Um deiner App also zu sagen, sie soll deutsch anstatt englisch als
Standardsprache bevorzugen, muss der Code wie folgt erweitert werden:

<pre>
// tells angular-translate to use the german language
// tells angular-translate to use the German language
$translateProvider.preferredLanguage('de');
</pre>

Expand Down Expand Up @@ -133,8 +133,8 @@ Fallback-Sprache konfigurieren lässt. Sie erwartet genau wie `preferredLanguage
einen Sprachschlüssel. `angular-translate` kümmert sich dann um den Rest.

<pre>
// tells angular-translate to use the english language if translations are not
// available in german
// tells angular-translate to use the English language if translations are not
// available in German
$translateProvider.fallbackLanguage('en');
</pre>

Expand Down Expand Up @@ -183,8 +183,8 @@ var translationsEN = {
PASSED_AS_ATTRIBUTE: 'I\'m passed as attribute value, cool ha?',
PASSED_AS_INTERPOLATION: 'Beginners! I\'m interpolated!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'german',
BUTTON_LANG_EN: 'english'
BUTTON_LANG_DE: 'German',
BUTTON_LANG_EN: 'English'
};

var translationsDE= {
Expand All @@ -194,8 +194,8 @@ var translationsDE= {
PASSED_AS_ATTRIBUTE: 'Ich wurde als Attribut übergeben, cool oder?',
PASSED_AS_INTERPOLATION: 'Anfänger! Ich bin interpoliert!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'deutsch',
BUTTON_LANG_EN: 'englisch'
BUTTON_LANG_DE: 'Deutsch',
BUTTON_LANG_EN: 'Englisch'
};
</pre>

Expand Down Expand Up @@ -244,9 +244,9 @@ Et vóila! Schon haben wir Unterstützung für Mehrsprachigkeit!
PASSED_AS_ATTRIBUTE: 'I\'m passed as attribute value, cool ha?',
PASSED_AS_INTERPOLATION: 'Beginners! I\'m interpolated!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
MISSING_TRANSLATION: 'Oops! I have not been translated into german...',
BUTTON_LANG_DE: 'german',
BUTTON_LANG_EN: 'english'
MISSING_TRANSLATION: 'Oops! I have not been translated into German...',
BUTTON_LANG_DE: 'German',
BUTTON_LANG_EN: 'English'
};

var translationsDE= {
Expand All @@ -257,8 +257,8 @@ Et vóila! Schon haben wir Unterstützung für Mehrsprachigkeit!
PASSED_AS_INTERPOLATION: 'Anfänger! Ich bin interpoliert!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
// MISSING_TRANSLATION is ... missing :)
BUTTON_LANG_DE: 'deutsch',
BUTTON_LANG_EN: 'englisch'
BUTTON_LANG_DE: 'Deutsch',
BUTTON_LANG_EN: 'Englisch'
};

var app = angular.module('myApp', ['pascalprecht.translate']);
Expand Down
10 changes: 5 additions & 5 deletions docs/content/guide/de/10_storages.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Wir haben viel über angular-translate in den letzten Kapiteln gelern. Wir wisse
wie wir unsere [Übersetzungen dynamisieren](#/guide/06_variable-replacement) können.
Wir haben auch gelernt, wie man [einer App mehrere Sprachen beibringt](#/guide/07_multi-language).
Aber da ist immer noch etwas, was sich komisch anfühlt, wenn wir unsere App
aufrufen. Jedes Mal, wenn wir unsere App starten, müssen wir den 'deutsch'- Button
aufrufen. Jedes Mal, wenn wir unsere App starten, müssen wir den 'Deutsch'- Button
klicken.

Unsere App kann sich also einfach nicht merken, welche Sprache wir gewählt hatten,
Expand Down Expand Up @@ -86,8 +86,8 @@ Das war's! Updaten wir unsere Beispiel App!
PASSED_AS_ATTRIBUTE: 'I\'m passed as attribute value, cool ha?',
PASSED_AS_INTERPOLATION: 'Beginners! I\'m interpolated!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'german',
BUTTON_LANG_EN: 'english'
BUTTON_LANG_DE: 'German',
BUTTON_LANG_EN: 'English'
};

var translationsDE= {
Expand All @@ -97,8 +97,8 @@ Das war's! Updaten wir unsere Beispiel App!
PASSED_AS_ATTRIBUTE: 'Ich wurde als Attribut übergeben, cool oder?',
PASSED_AS_INTERPOLATION: 'Anfänger! Ich bin interpoliert!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'deutsch',
BUTTON_LANG_EN: 'englisch'
BUTTON_LANG_DE: 'Deutsch',
BUTTON_LANG_EN: 'Englisch'
};

var app = angular.module('myApp', ['ngCookies', 'pascalprecht.translate']);
Expand Down
8 changes: 4 additions & 4 deletions docs/content/guide/de/11_custom-storages.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ der App beizubringen, sich eine Sprache zu merken.
PASSED_AS_ATTRIBUTE: 'I\'m passed as attribute value, cool ha?',
PASSED_AS_INTERPOLATION: 'Beginners! I\'m interpolated!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'german',
BUTTON_LANG_EN: 'english'
BUTTON_LANG_DE: 'German',
BUTTON_LANG_EN: 'English'
};

var translationsDE= {
Expand All @@ -78,8 +78,8 @@ der App beizubringen, sich eine Sprache zu merken.
PASSED_AS_ATTRIBUTE: 'Ich wurde als Attribut übergeben, cool oder?',
PASSED_AS_INTERPOLATION: 'Anfänger! Ich bin interpoliert!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'deutsch',
BUTTON_LANG_EN: 'englisch'
BUTTON_LANG_DE: 'Deutsch',
BUTTON_LANG_EN: 'Englisch'
};

var app = angular.module('myApp', ['ngCookies', 'pascalprecht.translate']);
Expand Down
8 changes: 4 additions & 4 deletions docs/content/guide/de/12_asynchronous-loading.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ die Übersetzungen aus dem Code und schreiben Sie in seperate Dateien:
"PASSED_AS_ATTRIBUTE": "I'm passed as attribute value, cool ha?",
"PASSED_AS_INTERPOLATION": "Beginners! I'm interpolated!",
"VARIABLE_REPLACEMENT": "Hi {{name}}",
"BUTTON_LANG_DE": "german",
"BUTTON_LANG_EN": "english"
"BUTTON_LANG_DE": "German",
"BUTTON_LANG_EN": "English"
}
</pre>

Expand Down Expand Up @@ -423,8 +423,8 @@ schon fertig! Hier ist die funktionierende App:
"PASSED_AS_ATTRIBUTE": "I'm passed as attribute value, cool ha?",
"PASSED_AS_INTERPOLATION": "Beginners! I'm interpolated!",
"VARIABLE_REPLACEMENT": "Hi {{name}}",
"BUTTON_LANG_DE": "german",
"BUTTON_LANG_EN": "english"
"BUTTON_LANG_DE": "German",
"BUTTON_LANG_EN": "English"
});
// configures staticFilesLoader
$translateProvider.useStaticFilesLoader({
Expand Down
16 changes: 8 additions & 8 deletions docs/content/guide/de/13_custom-loaders.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ app.factory('asyncLoader', function ($q, $timeout) {
PASSED_AS_ATTRIBUTE: 'I\'m passed as attribute value, cool ha?',
PASSED_AS_INTERPOLATION: 'Beginners! I\'m interpolated!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'german',
BUTTON_LANG_EN: 'english'
BUTTON_LANG_DE: 'German',
BUTTON_LANG_EN: 'English'
};
} else {
translations = {
Expand All @@ -108,8 +108,8 @@ app.factory('asyncLoader', function ($q, $timeout) {
PASSED_AS_ATTRIBUTE: 'Ich wurde als Attribut übergeben, cool oder?',
PASSED_AS_INTERPOLATION: 'Anfänger! Ich bin interpoliert!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'deutsch',
BUTTON_LANG_EN: 'englisch'
BUTTON_LANG_DE: 'Deutsch',
BUTTON_LANG_EN: 'Englisch'
};
}

Expand Down Expand Up @@ -157,8 +157,8 @@ Et vóila, hier ist unsere funktionierende App!
PASSED_AS_ATTRIBUTE: 'I\'m passed as attribute value, cool ha?',
PASSED_AS_INTERPOLATION: 'Beginners! I\'m interpolated!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'german',
BUTTON_LANG_EN: 'english'
BUTTON_LANG_DE: 'German',
BUTTON_LANG_EN: 'English'
};
} else {
translations = {
Expand All @@ -168,8 +168,8 @@ Et vóila, hier ist unsere funktionierende App!
PASSED_AS_ATTRIBUTE: 'Ich wurde als Attribut übergeben, cool oder?',
PASSED_AS_INTERPOLATION: 'Anfänger! Ich bin interpoliert!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'deutsch',
BUTTON_LANG_EN: 'englisch'
BUTTON_LANG_DE: 'Deutsch',
BUTTON_LANG_EN: 'Englisch'
};
}

Expand Down
8 changes: 4 additions & 4 deletions docs/content/guide/de/14_pluralization.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,16 @@ eingebunden wurde:
HEADLINE: 'I\'m a headline',
TEXT: 'I\'m using default interpolation {{ val + val }}',
PLURAL: '{GENDER, select, male{He} female{She} other{They}} liked this.',
BUTTON_LANG_EN: 'english',
BUTTON_LANG_DE: 'german'
BUTTON_LANG_EN: 'English',
BUTTON_LANG_DE: 'German'
});

$translateProvider.translations('de', {
HEADLINE: 'Ich bin eine Überschrift',
TEXT: 'Ich benutze default interpolation {{ val + val }}',
PLURAL: '{GENDER, select, male{Er fand} female{Sie fand} other{Sie fanden}} es gut.',
BUTTON_LANG_EN: 'englisch',
BUTTON_LANG_DE: 'deutsch'
BUTTON_LANG_EN: 'Englisch',
BUTTON_LANG_DE: 'Deutsch'
});
}]);

Expand Down
8 changes: 4 additions & 4 deletions docs/content/guide/de/15_custom-interpolators.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ So siehts aus:
HEADLINE: 'I\'m a headline',
TEXT: 'I\'m using default interpolation {{ val + val }}',
PLURAL: '{GENDER, select, male{He} female{She} other{They}} liked this.',
BUTTON_LANG_EN: 'english',
BUTTON_LANG_DE: 'german'
BUTTON_LANG_EN: 'English',
BUTTON_LANG_DE: 'German'
});

$translateProvider.translations('de', {
HEADLINE: 'Ich bin eine Überschrift',
TEXT: 'Ich benutze default interpolation {{ val + val }}',
PLURAL: '{GENDER, select, male{Er fand} female{Sie fand} other{Sie fanden}} es gut.',
BUTTON_LANG_EN: 'englisch',
BUTTON_LANG_DE: 'deutsch'
BUTTON_LANG_EN: 'Englisch',
BUTTON_LANG_DE: 'Deutsch'
});
}]);

Expand Down
8 changes: 4 additions & 4 deletions docs/content/guide/de/16_error-handling.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ Hier ein Beispiel:
HEADLINE: 'I\'m a headline',
TEXT: 'I\'m using default interpolation {{ val + val }}',
PLURAL: '{GENDER, select, male{He} female{She} other{They}} liked this.',
BUTTON_LANG_EN: 'english',
BUTTON_LANG_DE: 'german'
BUTTON_LANG_EN: 'English',
BUTTON_LANG_DE: 'German'
});

$translateProvider.translations('de', {
HEADLINE: 'Ich bin eine Überschrift',
TEXT: 'Ich benutze default interpolation {{ val + val }}',
PLURAL: '{GENDER, select, male{Er fand} female{Sie fand} other{Sie fanden}} es gut.',
BUTTON_LANG_EN: 'englisch',
BUTTON_LANG_DE: 'deutsch'
BUTTON_LANG_EN: 'Englisch',
BUTTON_LANG_DE: 'Deutsch'
});
}]);

Expand Down
30 changes: 15 additions & 15 deletions docs/content/guide/en/07_multi-language.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $translateProvider.translations('en', {
});
</pre>

Now, to add a second translation table for another language, let's say german, just
Now, to add a second translation table for another language, let's say German, just
do the same with a different language key:

<pre>
Expand All @@ -58,11 +58,11 @@ has to know which one to use. This is where a new method of `$translateProvider`
comes in. `preferredLanguage()` tells angular-translate which of the registered
languages is the one that should be used by default. It expects an argument with
the value of the language key, which points to a certain translation table. So,
to tell an app it should use german rather than english as first language, extend
to tell an app it should use German rather than English as first language, extend
the code like this:

<pre>
// tells angular-translate to use the german language
// tells angular-translate to use the German language
$translateProvider.preferredLanguage('de');
</pre>

Expand Down Expand Up @@ -144,7 +144,7 @@ angular.module('myApp').controller('Ctrl', ['$translate', '$scope', function ($t
</pre>

To get a feeling for how it would work in a sample app, we update our app
accordingly. First, we add another translation table for the german language and
accordingly. First, we add another translation table for the German language and
add two new translation IDs for buttons we want to add later:

<pre>
Expand All @@ -155,8 +155,8 @@ var translationsEN = {
PASSED_AS_ATTRIBUTE: 'I\'m passed as attribute value, cool ha?',
PASSED_AS_INTERPOLATION: 'Beginners! I\'m interpolated!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'german',
BUTTON_LANG_EN: 'english'
BUTTON_LANG_DE: 'German',
BUTTON_LANG_EN: 'English'
};

var translationsDE= {
Expand All @@ -166,13 +166,13 @@ var translationsDE= {
PASSED_AS_ATTRIBUTE: 'Ich wurde als Attribut übergeben, cool oder?',
PASSED_AS_INTERPOLATION: 'Anfänger! Ich bin interpoliert!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
BUTTON_LANG_DE: 'deutsch',
BUTTON_LANG_EN: 'englisch'
BUTTON_LANG_DE: 'Deutsch',
BUTTON_LANG_EN: 'Englisch'
};
</pre>

After that, we update the registration of the english translation table, that it
has a corresponding language key and tell angular-translate to use english as
After that, we update the registration of the English translation table, that it
has a corresponding language key and tell angular-translate to use English as
default language:

<pre>
Expand Down Expand Up @@ -215,9 +215,9 @@ Et voilà! We now have an app with multi language support!
PASSED_AS_ATTRIBUTE: 'I\'m passed as attribute value, cool ha?',
PASSED_AS_INTERPOLATION: 'Beginners! I\'m interpolated!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
MISSING_TRANSLATION: 'Oops! I have not been translated into german...',
BUTTON_LANG_DE: 'german',
BUTTON_LANG_EN: 'english'
MISSING_TRANSLATION: 'Oops! I have not been translated into German...',
BUTTON_LANG_DE: 'German',
BUTTON_LANG_EN: 'English'
};

var translationsDE= {
Expand All @@ -228,8 +228,8 @@ Et voilà! We now have an app with multi language support!
PASSED_AS_INTERPOLATION: 'Anfänger! Ich bin interpoliert!',
VARIABLE_REPLACEMENT: 'Hi {{name}}',
// MISSING_TRANSLATION is ... missing :)
BUTTON_LANG_DE: 'deutsch',
BUTTON_LANG_EN: 'englisch'
BUTTON_LANG_DE: 'Deutsch',
BUTTON_LANG_EN: 'Englisch'
};

var app = angular.module('myApp', ['pascalprecht.translate']);
Expand Down
Loading

0 comments on commit 5f89d55

Please sign in to comment.