Skip to content

Commit

Permalink
Add localized CC and Adobe URLs. Fix broken HTML in WEB_PLATFORM_DOCS…
Browse files Browse the repository at this point in the history
… french translation from last lockit.
  • Loading branch information
jasonsanjose committed Apr 25, 2013
1 parent 8067688 commit 4c95924
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/nls/fr/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ define({
"APP_NAME": "Brackets",
"CLOSE": "Fermer",
"ABOUT_TEXT_LINE1": "Sprint {VERSION_MINOR} {BUILD_TYPE} {VERSION}",
"ABOUT_TEXT_LINE3": "Les mentions légales et conditions générales relatives aux logiciels tiers sont disponibles à l’adresse <a class=\"clickable-link\" data-href=\"http://www.adobe.com/go/thirdparty_fr/\">http://www.adobe.com/go/thirdparty_fr/</a> et sont incluses dans le présent document à titre de référence.",
"ABOUT_TEXT_LINE3": "Les mentions légales et conditions générales relatives aux logiciels tiers sont disponibles à l’adresse <a class=\"clickable-link\" data-href=\"{ADOBE_THIRD_PARTY}\">{ADOBE_THIRD_PARTY}</a> et sont incluses dans le présent document à titre de référence.",
"ABOUT_TEXT_LINE4": "La documentation et la source sont disponibles à l’adresse <a class=\"clickable-link\" data-href=\"https://github.com/adobe/brackets/\">https://github.com/adobe/brackets/</a>.",
"ABOUT_TEXT_LINE5": "Développé avec \u2764 et JavaScript par :",
"ABOUT_TEXT_LINE6": "De nombreux contributeurs (information indisponible pour le moment).",
"ABOUT_TEXT_WEB_PLATFORM_DOCS": "Web Platform Docs et le logo graphique Web Platform sont mis à disposition sous licence Creative Commons Attribution, <a class=\"clickable-link\" data-href=\"http://creativecommons.org/licenses/by/3.0/\">CC-BY 3.0 Unported.",
"ABOUT_TEXT_WEB_PLATFORM_DOCS": "Web Platform Docs et le logo graphique Web Platform sont mis à disposition sous licence Creative Commons Attribution, <a class=\"clickable-link\" data-href=\"{WEB_PLATFORM_DOCS_LICENSE}\">CC-BY 3.0 non transposé</a>.",
"UPDATE_NOTIFICATION_TOOLTIP": "Une nouvelle version de {APP_NAME} est disponible. Cliquez ici pour plus de détails.",
"UPDATE_AVAILABLE_TITLE": "Mise à jour disponible",
"UPDATE_MESSAGE": "Une nouvelle version de {APP_NAME} est disponible. Voici quelques-unes des nouvelles fonctionnalités proposées :",
Expand Down
4 changes: 3 additions & 1 deletion src/nls/fr/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@

define({
// Relative to the samples folder
"GETTING_STARTED" : "fr/Premiers pas"
"GETTING_STARTED" : "fr/Premiers pas",
"ADOBE_THIRD_PARTY" : "http://www.adobe.com/go/thirdparty_fr/",
"WEB_PLATFORM_DOCS_LICENSE" : "http://creativecommons.org/licenses/by/3.0/deed.fr"
});
4 changes: 2 additions & 2 deletions src/nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ define({
"APP_NAME" : "Brackets",
"CLOSE" : "Close",
"ABOUT_TEXT_LINE1" : "sprint {VERSION_MINOR} {BUILD_TYPE} {VERSION}",
"ABOUT_TEXT_LINE3" : "Notices, terms and conditions pertaining to third party software are located at <a class=\"clickable-link\" data-href=\"http://www.adobe.com/go/thirdparty/\">http://www.adobe.com/go/thirdparty/</a> and incorporated by reference herein.",
"ABOUT_TEXT_LINE3" : "Notices, terms and conditions pertaining to third party software are located at <a class=\"clickable-link\" data-href=\"{ADOBE_THIRD_PARTY}\">{ADOBE_THIRD_PARTY}</a> and incorporated by reference herein.",
"ABOUT_TEXT_LINE4" : "Documentation and source at <a class=\"clickable-link\" data-href=\"https://github.com/adobe/brackets/\">https://github.com/adobe/brackets/</a>",
"ABOUT_TEXT_LINE5" : "Made with \u2764 and JavaScript by:",
"ABOUT_TEXT_LINE6" : "Lots of people (but we're having trouble loading that data right now).",
"ABOUT_TEXT_WEB_PLATFORM_DOCS" : "Web Platform Docs and the Web Platform graphical logo are licensed under a Creative Commons Attribution license, <a class=\"clickable-link\" data-href=\"http://creativecommons.org/licenses/by/3.0/\">CC-BY 3.0 Unported</a>.",
"ABOUT_TEXT_WEB_PLATFORM_DOCS" : "Web Platform Docs and the Web Platform graphical logo are licensed under a Creative Commons Attribution license, <a class=\"clickable-link\" data-href=\"{WEB_PLATFORM_DOCS_LICENSE}\">CC-BY 3.0 Unported</a>.",
"UPDATE_NOTIFICATION_TOOLTIP" : "There's a new build of {APP_NAME} available! Click here for details.",
"UPDATE_AVAILABLE_TITLE" : "Update Available",
"UPDATE_MESSAGE" : "Hey, there's a new build of {APP_NAME} available. Here are some of the new features:",
Expand Down
4 changes: 3 additions & 1 deletion src/nls/root/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@

define({
// Relative to the samples folder
"GETTING_STARTED" : "root/Getting Started"
"GETTING_STARTED" : "root/Getting Started",
"ADOBE_THIRD_PARTY" : "http://www.adobe.com/go/thirdparty/",
"WEB_PLATFORM_DOCS_LICENSE" : "http://creativecommons.org/licenses/by/3.0/"
});
6 changes: 4 additions & 2 deletions src/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/

/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, brackets, window */
/*global $, define, brackets, window */

/**
* This file provides the interface to user visible strings in Brackets. Code that needs
Expand All @@ -34,11 +34,13 @@ define(function (require, exports, module) {
"use strict";

var strings = require("i18n!nls/strings"),
urls = require("i18n!nls/urls"),
Global = require("utils/Global"),
CollectionUtils = require("utils/CollectionUtils"),
StringUtils = require("utils/StringUtils");

var additionalGlobals = {},
// Add URLs as additional globals
var additionalGlobals = $.extend({}, urls),
parsedVersion = /([0-9]+)\.([0-9]+)\.([0-9]+)/.exec(brackets.metadata.version);

additionalGlobals.APP_NAME = brackets.metadata.name || strings.APP_NAME;
Expand Down

0 comments on commit 4c95924

Please sign in to comment.