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

Side by Side Diff: chrome/tools/mac_helpers/infoplist_strings_util.mm

Issue 7076014: [cros] Initial implementation for OOBE WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/url_constants.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Helper tool that is built and run during a build to pull strings from 5 // Helper tool that is built and run during a build to pull strings from
6 // the GRD files and generate the InfoPlist.strings files needed for 6 // the GRD files and generate the InfoPlist.strings files needed for
7 // Mac OS X app bundles. 7 // Mac OS X app bundles.
8 8
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 10
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 branding_strings_name, 209 branding_strings_name,
210 cur_lang)); 210 cur_lang));
211 if (branded_data_pack.get() == NULL) { 211 if (branded_data_pack.get() == NULL) {
212 fprintf(stderr, "ERROR: Failed to load branded pak for language: %s\n", 212 fprintf(stderr, "ERROR: Failed to load branded pak for language: %s\n",
213 cur_lang); 213 cur_lang);
214 exit(1); 214 exit(1);
215 } 215 }
216 216
217 uint32_t name_id = IDS_PRODUCT_NAME; 217 uint32_t name_id = IDS_PRODUCT_NAME;
218 const char* name_id_str = "IDS_PRODUCT_NAME"; 218 const char* name_id_str = "IDS_PRODUCT_NAME";
219 uint32_t short_name_id = IDS_SHORT_PRODUCT_NAME; 219 uint32_t short_name_id = IDS_APP_MENU_PRODUCT_NAME;
220 const char* short_name_id_str = "IDS_SHORT_PRODUCT_NAME"; 220 const char* short_name_id_str = "IDS_APP_MENU_PRODUCT_NAME";
221 if (strcmp(app_type, kAppType_Helper) == 0) { 221 if (strcmp(app_type, kAppType_Helper) == 0) {
222 name_id = IDS_HELPER_NAME; 222 name_id = IDS_HELPER_NAME;
223 name_id_str = "IDS_HELPER_NAME"; 223 name_id_str = "IDS_HELPER_NAME";
224 short_name_id = IDS_SHORT_HELPER_NAME; 224 short_name_id = IDS_SHORT_HELPER_NAME;
225 short_name_id_str = "IDS_SHORT_HELPER_NAME"; 225 short_name_id_str = "IDS_SHORT_HELPER_NAME";
226 } 226 }
227 227
228 // Fetch the strings 228 // Fetch the strings
229 NSString* name = 229 NSString* name =
230 LoadStringFromDataPack(branded_data_pack.get(), cur_lang, 230 LoadStringFromDataPack(branded_data_pack.get(), cur_lang,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 [output_path stringByAppendingPathComponent:@"InfoPlist.strings"]; 296 [output_path stringByAppendingPathComponent:@"InfoPlist.strings"];
297 if (![strings_file_contents_utf8 writeToFile:output_path 297 if (![strings_file_contents_utf8 writeToFile:output_path
298 atomically:YES]) { 298 atomically:YES]) {
299 fprintf(stderr, "ERROR: Failed to write out '%s'\n", 299 fprintf(stderr, "ERROR: Failed to write out '%s'\n",
300 [output_path UTF8String]); 300 [output_path UTF8String]);
301 exit(1); 301 exit(1);
302 } 302 }
303 } 303 }
304 return 0; 304 return 0;
305 } 305 }
OLDNEW
« no previous file with comments | « chrome/common/url_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698