This repository has been archived by the owner on Feb 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1597 from erikvold/661083
Bug 661083 manifest localization r=@Gozala
- Loading branch information
Showing
15 changed files
with
179 additions
and
16 deletions.
There are no files selected for viewing
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 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 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 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
1 change: 1 addition & 0 deletions
1
python-lib/cuddlefish/tests/bug-661083-files/packages/noLocalization/locale/en-GB.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
some_key = some_value |
1 change: 1 addition & 0 deletions
1
python-lib/cuddlefish/tests/bug-661083-files/packages/noLocalization/locale/en-US.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
some_key = some_value |
11 changes: 11 additions & 0 deletions
11
python-lib/cuddlefish/tests/bug-661083-files/packages/noLocalization/package.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "nolocalization", | ||
"id": "jid1-TBF7sWF7yT6xSQ", | ||
"license": "MPL 2.0", | ||
"version": "0.1", | ||
|
||
"title": "tilteUnlocalized", | ||
"author": "authorUnlocalized", | ||
"description": "descriptionUnlocalized", | ||
"homepage": "homepageUnlocalized" | ||
} |
4 changes: 4 additions & 0 deletions
4
python-lib/cuddlefish/tests/bug-661083-files/packages/twoLanguages/locale/en-GB.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extensions.jid1-TBF7sWF7yT6xSQ@jetpack.title = title-en-GB | ||
extensions.jid1-TBF7sWF7yT6xSQ@jetpack.author = author-en-GB | ||
extensions.jid1-TBF7sWF7yT6xSQ@jetpack.description = description-en-GB | ||
extensions.jid1-TBF7sWF7yT6xSQ@jetpack.homepage = homepage-en-GB |
4 changes: 4 additions & 0 deletions
4
python-lib/cuddlefish/tests/bug-661083-files/packages/twoLanguages/locale/en-US.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extensions.jid1-TBF7sWF7yT6xSQ@jetpack.title = title-en-US | ||
extensions.jid1-TBF7sWF7yT6xSQ@jetpack.author = author-en-US | ||
extensions.jid1-TBF7sWF7yT6xSQ@jetpack.description = description-en-US | ||
extensions.jid1-TBF7sWF7yT6xSQ@jetpack.homepage = homepage-en-US |
11 changes: 11 additions & 0 deletions
11
python-lib/cuddlefish/tests/bug-661083-files/packages/twoLanguages/package.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "nolocalization", | ||
"id": "jid1-TBF7sWF7yT6xSQ@jetpack", | ||
"license": "MPL 2.0", | ||
"version": "0.1", | ||
|
||
"title": "tilteUnlocalized", | ||
"author": "authorUnlocalized", | ||
"description": "descriptionUnlocalized", | ||
"homepage": "homepageUnlocalized" | ||
} |
Empty file.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extensions.manifest-localized@jetpack.title = title-en | ||
extensions.manifest-localized@jetpack.author = author-en | ||
extensions.manifest-localized@jetpack.description = description-en | ||
extensions.manifest-localized@jetpack.homepage = homepage-en |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
"use strict"; | ||
|
||
const { Cu } = require('chrome'); | ||
const self = require('sdk/self'); | ||
const { AddonManager } = Cu.import('resource://gre/modules/AddonManager.jsm', {}); | ||
|
||
exports["test add-on manifest was localized"] = (assert, done) => { | ||
AddonManager.getAddonByID(self.id, addon => { | ||
assert.equal(addon.name, "title-en", "title was translated"); | ||
assert.equal(addon.description, "description-en", "description was translated"); | ||
assert.equal(addon.creator, "author-en", "author was translated"); | ||
assert.equal(addon.homepageURL, "homepage-en", "homepage was translated"); | ||
done(); | ||
}); | ||
}; | ||
|
||
require("sdk/test/runner").runTestsFromModule(module); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "manifest-localized", | ||
"id": "manifest-localized@jetpack", | ||
"license": "MPL 2.0", | ||
"version": "0.1", | ||
"title": "Manifest Not Localized", | ||
"author": "Manifest Not Localized", | ||
"description": "Manifest Not Localized", | ||
"homepage": "Manifest Not Localized" | ||
} |