Commit bea1e806 authored by sdefresne's avatar sdefresne Committed by Commit bot

Upstream target to generate localizable strings for Info.plist.

BUG=672516

Review-Url: https://codereview.chromium.org/2562063002
Cr-Commit-Position: refs/heads/master@{#437808}
parent 5f112f29
...@@ -6,6 +6,7 @@ import("//build/config/chrome_build.gni") ...@@ -6,6 +6,7 @@ import("//build/config/chrome_build.gni")
import("//build/config/ios/rules.gni") import("//build/config/ios/rules.gni")
import("//build/config/locales.gni") import("//build/config/locales.gni")
import("//ios/chrome/app/resources/ios_chrome_repack.gni") import("//ios/chrome/app/resources/ios_chrome_repack.gni")
import("//ios/chrome/tools/strings/generate_localizable_strings.gni")
import("//ios/public/provider/chrome/browser/build_config.gni") import("//ios/public/provider/chrome/browser/build_config.gni")
import("//tools/grit/grit_rule.gni") import("//tools/grit/grit_rule.gni")
...@@ -113,3 +114,16 @@ bundle_data_ib_file("launchscreen_xib") { ...@@ -113,3 +114,16 @@ bundle_data_ib_file("launchscreen_xib") {
ios_launchscreen_assets_target, ios_launchscreen_assets_target,
] ]
} }
generate_localizable_strings("system_strings") {
config_file = "chrome_localize_strings_config.plist"
datapack_dir = get_label_info(ios_packed_resources_target, "target_gen_dir")
packed_locales = ios_packed_locales_as_mac_outputs
output_filenames = [
"InfoPlist.strings",
"Localizable.strings",
]
deps = [
ios_packed_resources_target,
]
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>headers</key>
<array>
<string>ios/chrome/grit/ios_chromium_strings.h</string>
<string>ios/chrome/grit/ios_strings.h</string>
</array>
<key>outputs</key>
<array>
<dict>
<key>name</key>
<string>Localizable.strings</string>
<key>strings</key>
<array>
<string>IDS_IOS_SAFE_MODE_NAMED_TWEAKS_FOUND</string>
<string>IDS_IOS_SAFE_MODE_TWEAKS_FOUND</string>
<string>IDS_IOS_SAFE_MODE_UNKNOWN_CAUSE</string>
<string>IDS_IOS_SAFE_MODE_SENDING_CRASH_REPORT</string>
<string>IDS_IOS_SAFE_MODE_CRASH_REPORT_SENT</string>
<string>IDS_IOS_SAFE_MODE_RELOAD_CHROME</string>
<string>IDS_IOS_SAFE_MODE_AW_SNAP</string>
</array>
</dict>
<dict>
<key>name</key>
<string>InfoPlist.strings</string>
<key>strings</key>
<array>
<dict>
<key>input</key>
<string>IDS_IOS_BLUETOOTH_USAGE_DESCRIPTION</string>
<key>output</key>
<string>NSBluetoothPeripheralUsageDescription</string>
</dict>
<dict>
<key>input</key>
<string>IDS_IOS_CAMERA_USAGE_DESCRIPTION</string>
<key>output</key>
<string>NSCameraUsageDescription</string>
</dict>
<dict>
<key>input</key>
<string>IDS_IOS_LOCATION_WHEN_IN_USE_USAGE_DESCRIPTION</string>
<key>output</key>
<string>NSLocationWhenInUseUsageDescription</string>
</dict>
<dict>
<key>input</key>
<string>IDS_IOS_MICROPHONE_USAGE_DESCRIPTION</string>
<key>output</key>
<string>NSMicrophoneUsageDescription</string>
</dict>
<dict>
<key>input</key>
<string>IDS_IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION</string>
<key>output</key>
<string>NSPhotoLibraryUsageDescription</string>
</dict>
<string>IDS_IOS_APPLICATION_SHORTCUT_NEWTAB_TITLE</string>
<string>IDS_IOS_APPLICATION_SHORTCUT_NEWINCOGNITOTAB_TITLE</string>
<string>IDS_IOS_APPLICATION_SHORTCUT_VOICE_SEARCH_TITLE</string>
</array>
</dict>
</array>
</dict>
</plist>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment