http://midorex.blogspot.com/2012/10/os-x-1082-to-find-range-of-h-or-h-in.html
の続き。
% pwd
/System/Library/PreferencePanes/Localization.prefPane/Contents/Resources/IntlFormats.prefPane/Contents/Resources
% cp -a Japanese.lproj ~/jp
% cp -a English.lproj ~/en
% cd
% plutil -convert xml1 ~/jp/Localizable.strings -o ~/jp-local.xml
% plutil -convert xml1 ~/en/Localizable.strings -o ~/en-local.xml
Japanese.lproj/Localizable.strings
関係ないのだろうが... よくみると </string> の前に Space が混在している行がある。
6, 8, 22行目
% cat -n jp-local.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>CustomLocaleFormat</key>
6 <string>%@(%@)</string>
7 <key>CustomLocaleVariantFormat</key>
8 <string>%@(%@、%@)</string>
9 <key>Day</key>
10 <string>日</string>
11 <key>Month</key>
12 <string>月</string>
13 <key>None</key>
14 <string>なし</string>
15 <key>Sample Day</key>
16 <string>5</string>
17 <key>Sample Month</key>
18 <string>1</string>
19 <key>Space</key>
20 <string>スペース</string>
21 <key>VariantFormat</key>
22 <string>%@(%@)</string>
23 <key>Year</key>
24 <string>年</string>
25 </dict>
26 </plist>
%
English.lproj/Localizable.strings
こちらの 6,8,22行目には </string> 前に Space なし。
% cat -n en-local.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>CustomLocaleFormat</key>
6 <string>%@ (%@)</string>
7 <key>CustomLocaleVariantFormat</key>
8 <string>%@ (%@, %@)</string>
9 <key>Day</key>
10 <string>Day</string>
11 <key>Month</key>
12 <string>Month</string>
13 <key>None</key>
14 <string>None</string>
15 <key>Sample Day</key>
16 <string>5</string>
17 <key>Sample Month</key>
18 <string>1</string>
19 <key>Space</key>
20 <string>Space</string>
21 <key>VariantFormat</key>
22 <string>%@ (%@)</string>
23 <key>Year</key>
24 <string>Year</string>
25 </dict>
26 </plist>
%
# ~/jp-local.xmlのオリジナル
# File:
# /System/Library/PreferencePanes/Localization.prefPane/Contents/Resources/IntlFormats.prefPane/Contents/Resources/Japanese.lproj/Localizable.strings
0 件のコメント:
コメントを投稿