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

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

Issue 7795063: Changes for l10n in official build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed bad unicode char encoding. Created 9 years, 3 months 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/remoting.gyp ('k') | remoting/webapp/me2mom/_locales.official/ar/messages.json » ('j') | 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 a998797a587e253e5a7d465b81f993cd2e704e57..5a551b77920a12aa12c2027a0845687755a5e0e7 100644
--- a/remoting/webapp/build-webapp.py
+++ b/remoting/webapp/build-webapp.py
@@ -104,9 +104,13 @@ def buildWebApp(mimetype, destination, zip_path, plugin, name_suffix, files,
os.mkdir(destination_locales , 0775)
for current_locale in locales:
pos = current_locale.find("/_locales/")
+ len = 10
garykac 2011/09/08 17:18:34 Would it be better to strlen("/locales/") here rat
+ if (pos == -1):
+ pos = current_locale.find("/_locales.official/")
+ len = 19
if (pos == -1):
raise "Missing locales directory in " + current_locale
- subtree = current_locale[pos+10:]
+ subtree = current_locale[pos+len:]
pos = subtree.find("/")
if (pos == -1):
raise "Malformed locale: " + current_locale
« no previous file with comments | « remoting/remoting.gyp ('k') | remoting/webapp/me2mom/_locales.official/ar/messages.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698