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

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

Issue 11365095: Revert 166003 - Move Chromoting strings to string_resources.grd and simplify remoting_resources tar… (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/tools/remove_official_branding.py ('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
===================================================================
--- remoting/webapp/build-webapp.py (revision 166010)
+++ remoting/webapp/build-webapp.py (working copy)
@@ -111,15 +111,20 @@
# Copy all the locales, preserving directory structure
destination_locales = os.path.join(destination, "_locales")
os.mkdir(destination_locales , 0775)
- locale_dir = "/_locales/"
+ chromium_locale_dir = "/_locales/"
+ chrome_locale_dir = "/_locales.official/"
for current_locale in locales:
- pos = current_locale.find(locale_dir)
+ pos = current_locale.find(chromium_locale_dir)
+ locale_len = len(chromium_locale_dir)
if (pos == -1):
- raise Exception("Missing locales directory in " + current_locale)
- subtree = current_locale[pos + len(locale_dir):]
+ 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:]
pos = subtree.find("/")
if (pos == -1):
- raise Exception("Malformed locale: " + current_locale)
+ raise "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/tools/remove_official_branding.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698