Skip to content

Add localization #1

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/App_Plugins/RobotsMeta/lang/da-DK.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<language alias="da" intName="Danish" localName="dansk" lcid="6" culture="da-DK">
<area alias="robotsMetaTag">
<key alias="indexFollowName">Indekser denne side og følg links</key>
<key alias="indexFollowDescription">Tillader indeksering af denne side, samt at følge links på siden</key>
<key alias="noindexFollowName">Indekser ikke denne side, men følg links</key>
<key alias="noindexFollowDescription">Tillader ikke indeksering af denne side, men tillader at følge links på siden</key>
<key alias="noindexNofollowName">Indekser ikke denne side og følg ikke links</key>
<key alias="noindexNofollowDescription">Tillader hverken indeksering af siden, eller at følge links på siden</key>
<key alias="value">Indstilling</key>
<key alias="selectedValue">Valgt indstilling</key>
</area>
</language>
13 changes: 13 additions & 0 deletions src/App_Plugins/RobotsMeta/lang/en-GB.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<language alias="en" intName="English (UK)" localName="English (UK)" lcid="" culture="en-GB">
<area alias="robotsMetaTag">
<key alias="indexFollowName">Index this, and follow links</key>
<key alias="indexFollowDescription">Will allow indexing of this page, and allow the search engine to follow links</key>
<key alias="noindexFollowName">Dont index this, but follow links</key>
<key alias="noindexFollowDescription">Will disallow indexing of this page, but will allow the search engine to follow links</key>
<key alias="noindexNofollowName">Index none</key>
<key alias="noindexNofollowDescription">Will disallow indexing of this page, and disallow it to follow links</key>
<key alias="value">Value</key>
<key alias="selectedValue">Selected value</key>
</area>
</language>
13 changes: 13 additions & 0 deletions src/App_Plugins/RobotsMeta/lang/en-US.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<language alias="en_us" intName="English (US)" localName="English (US)" lcid="" culture="en-US">
<area alias="robotsMetaTag">
<key alias="indexFollowName">Index this, and follow links</key>
<key alias="indexFollowDescription">Will allow indexing of this page, and allow the search engine to follow links</key>
<key alias="noindexFollowName">Dont index this, but follow links</key>
<key alias="noindexFollowDescription">Will disallow indexing of this page, but will allow the search engine to follow links</key>
<key alias="noindexNofollowName">Index none</key>
<key alias="noindexNofollowDescription">Will disallow indexing of this page, and disallow it to follow links</key>
<key alias="value">Value</key>
<key alias="selectedValue">Selected value</key>
</area>
</language>
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@
function ($scope) {
$scope.listValues = [
{
dictionaryKeyForName: "robotsMetaTag_indexFollowName",
dictionaryKeyForDescription: "robotsMetaTag_indexFollowDescription",
name: "Index this, and follow links",
description: "Will allow indexing of this page, and allow the search engine to follow links",
value: "index,follow,noodp"
},
{
dictionaryKeyForName: "robotsMetaTag_noindexFollowName",
dictionaryKeyForDescription: "robotsMetaTag_noindexFollowDescription",
name: "Dont index this, but follow links",
description: "Will disallow indexing of this page, but will allow the search engine to follow links",
value: "noindex,follow,noodp"
},
{
dictionaryKeyForName: "robotsMetaTag_noindexNofollowName",
dictionaryKeyForDescription: "robotsMetaTag_noindexNofollowDescription",
name: "Index none",
description: "Will disallow indexing of this page, and disallow it to follow links",
value: "noindex,nofollow,noodp"
}
];

});
});
14 changes: 9 additions & 5 deletions src/App_Plugins/RobotsMeta/propertyeditors/robotsmetaeditor.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
<li ng-class="{'active':model.value==item.value}">
<label>
<input type="radio" name="robotsvalue" ng-model="model.value" ng-change="model.value = item.value" ng-value="item.value" />
<div class="title">{{item.name}}</div>
<div class="description">{{item.description}}</div>
<div class="value">Value: {{item.value}}</div>
<div class="title">
<localize key="{{item.dictionaryKeyForName}}">{{item.name}}</localize>
</div>
<div class="description">
<localize key="{{item.dictionaryKeyForDescription}}">{{item.description}}</localize>
</div>
<div class="value"><localize key="robotsMetaTag_value">Value</localize>: {{item.value}}</div>
</label>
</li>
</ul>
<div>
Selected value: {{model.value}}
<localize key="robotsMetaTag_selectedValue">Selected value</localize>: {{model.value}}
</div>
</div>
</div>