Skip to content
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

Enabled localization of grid editor names #1256

Merged
merged 2 commits into from Feb 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -822,6 +822,14 @@ angular.module("umbraco")
gridService.getGridEditors().then(function (response) {
$scope.availableEditors = response.data;

//Localize the grid editor names
angular.forEach($scope.availableEditors, function (value, key) {
//If no translation is provided, keep using the editor name from the manifest
if (localizationService.dictionary.hasOwnProperty("grid_" + value.alias)) {
value.name = localizationService.localize("grid_" + value.alias);
}
});

$scope.contentReady = true;

// *********************************************
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/Umbraco/config/lang/cs.xml
Expand Up @@ -862,6 +862,13 @@
<key alias="settingDialogDetails">Settings will only save if the entered json configuration is valid</key>
<key alias="allowAllEditors">Allow all editors</key>
<key alias="allowAllRowConfigurations">Allow all row configurations</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">Alternativní pole</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/Umbraco/config/lang/nb.xml
Expand Up @@ -834,6 +834,13 @@ Vennlig hilsen Umbraco roboten
<key alias="chooseExtra">Velg ekstra</key>
<key alias="chooseDefault">Velg standard</key>
<key alias="areAdded">er lagt til</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">Alternativt felt</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/da.xml
Expand Up @@ -723,6 +723,13 @@ Mange hilsner fra Umbraco robotten
<key alias="chooseExtra">Vælg ekstra</key>
<key alias="chooseDefault">Vælg standard</key>
<key alias="areAdded">er tilføjet</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>

<area alias="contentTypeEditor">
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/de.xml
Expand Up @@ -852,6 +852,13 @@ Wenn Sie sich für Runway entscheiden, können Sie optional Blöcke nutzen, die
<key alias="settingDialogDetails">Die Einstellungen werden nur gespeichert, wenn die angegebene JSON-Konfiguration gültig ist.</key>
<key alias="allowAllEditors">Alle Elemente erlauben</key>
<key alias="allowAllRowConfigurations">Alle Zeilenlayouts erlauben</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">Alternatives Feld</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/en.xml
Expand Up @@ -1035,6 +1035,13 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="chooseExtra">Choose extra</key>
<key alias="chooseDefault">Choose default</key>
<key alias="areAdded">are added</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>

<area alias="contentTypeEditor">
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
Expand Up @@ -1035,6 +1035,13 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="chooseExtra">Choose extra</key>
<key alias="chooseDefault">Choose default</key>
<key alias="areAdded">are added</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>

<area alias="contentTypeEditor">
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/es.xml
Expand Up @@ -761,6 +761,13 @@

<key alias="allowAllEditors">Permitir todos los controles de edición</key>
<key alias="allowAllRowConfigurations">Permitir todas las configuraciones de fila</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">Campo opcional</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/fr.xml
Expand Up @@ -882,6 +882,13 @@ Pour gérer votre site, ouvrez simplement le backoffice Umbraco et commencez à

<key alias="allowAllEditors">Autoriser tous les éditeurs</key>
<key alias="allowAllRowConfigurations">Autoriser toutes les configurations de lignes</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">Champ alternatif</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/he.xml
Expand Up @@ -771,6 +771,13 @@ To manage your website, simply open the Umbraco back office and start adding con

<key alias="allowAllEditors">Allow all editors</key>
<key alias="allowAllRowConfigurations">Allow all row configurations</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">שדה אלטרנטיבי</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/it.xml
Expand Up @@ -741,6 +741,13 @@ Per gestire il tuo sito web, è sufficiente aprire il back office di Umbraco e i

<key alias="allowAllEditors">Allow all editors</key>
<key alias="allowAllRowConfigurations">Allow all row configurations</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField"><![CDATA[Campo alternativo]]></key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/ja.xml
Expand Up @@ -1014,6 +1014,13 @@ Runwayをインストールして作られた新しいウェブサイトがど
<key alias="chooseExtra">追加を選択</key>
<key alias="chooseDefault">デフォルトの選択</key>
<key alias="areAdded">追加されました</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>

<area alias="contentTypeEditor">
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/ko.xml
Expand Up @@ -747,6 +747,13 @@

<key alias="allowAllEditors">Allow all editors</key>
<key alias="allowAllRowConfigurations">Allow all row configurations</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">대체 필드</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/nl.xml
Expand Up @@ -855,6 +855,13 @@ Echter, Runway biedt een gemakkelijke basis om je snel op weg te helpen. Als je

<key alias="allowAllEditors">Alle editors toelaten</key>
<key alias="allowAllRowConfigurations">Alle rijconfiguraties toelaten</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">Alternatief veld</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/pl.xml
Expand Up @@ -663,6 +663,13 @@ Miłego dnia!]]></key>

<key alias="allowAllEditors">Allow all editors</key>
<key alias="allowAllRowConfigurations">Allow all row configurations</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">Pole alternatywne</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/pt.xml
Expand Up @@ -736,6 +736,13 @@ Você pode publicar esta página e todas suas sub-páginas ao selecionar <em>pub

<key alias="allowAllEditors">Allow all editors</key>
<key alias="allowAllRowConfigurations">Allow all row configurations</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">Campo alternativo</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/ru.xml
Expand Up @@ -576,6 +576,13 @@
<key alias="chooseExtra">Выбрать дополнительно</key>
<key alias="chooseDefault">Выбрать по-умолчанию</key>
<key alias="areAdded">добавлены</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="headers">
<key alias="page">Страница</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/sv.xml
Expand Up @@ -768,6 +768,13 @@
<key alias="settingDialogDetails">Inställningarna kommer bara att sparas om det inmatade json-konfigurationen är giltig</key>
<key alias="allowAllEditors">Tillåt alla editors</key>
<key alias="allowAllRowConfigurations">Tillåt alla rad- konfigurationer</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">Alternativt fält</key>
Expand Down
7 changes: 7 additions & 0 deletions src/Umbraco.Web.UI/umbraco/config/lang/zh.xml
Expand Up @@ -822,6 +822,13 @@

<key alias="allowAllEditors">Allow all editors</key>
<key alias="allowAllRowConfigurations">Allow all row configurations</key>

<key alias="rte">Rich Text Editor</key>
<key alias="media">Image</key>
<key alias="macro">Macro</key>
<key alias="embed">Embed</key>
<key alias="headline">Headline</key>
<key alias="quote">Quote</key>
</area>
<area alias="templateEditor">
<key alias="alternativeField">替代字段</key>
Expand Down