Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1291)

Unified Diff: remoting/webapp/build-webapp.py

Issue 11275101: Fix branding in chromoting string resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/_locales/en/messages.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/build-webapp.py
diff --git a/remoting/webapp/build-webapp.py b/remoting/webapp/build-webapp.py
index 5ac8f1f8d78fe06d1a88db439ba7d82995195149..a7b99521c418535aaa98f1c903067302fcef1372 100755
--- a/remoting/webapp/build-webapp.py
+++ b/remoting/webapp/build-webapp.py
@@ -111,20 +111,15 @@ def buildWebApp(buildtype, version, mimetype, destination, zip_path, plugin,
# Copy all the locales, preserving directory structure
destination_locales = os.path.join(destination, "_locales")
os.mkdir(destination_locales , 0775)
- chromium_locale_dir = "/_locales/"
- chrome_locale_dir = "/_locales.official/"
+ locale_dir = "/_locales/"
for current_locale in locales:
- pos = current_locale.find(chromium_locale_dir)
- locale_len = len(chromium_locale_dir)
+ pos = current_locale.find(locale_dir)
if (pos == -1):
- pos = current_locale.find(chrome_locale_dir)
- locale_len = len(chrome_locale_dir)
- if (pos == -1):
- raise "Missing locales directory in " + current_locale
- subtree = current_locale[pos+locale_len:]
+ raise Exception("Missing locales directory in " + current_locale)
+ subtree = current_locale[pos + len(locale_dir):]
pos = subtree.find("/")
if (pos == -1):
- raise "Malformed locale: " + current_locale
+ raise Exception("Malformed locale: " + current_locale)
locale_id = subtree[:pos]
messages = subtree[pos+1:]
destination_dir = os.path.join(destination_locales, locale_id)
« no previous file with comments | « remoting/webapp/_locales/en/messages.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698