2016-03-23 39 views
0

Androidでロケールを指定すると、Dateなどに提供される文字列が変更されます。したがって、ロケールをフランス、フランスに変更すると、Androidのdatepickerに「Monday」ではなく「Mardi」が表示されます。ロケールのリソースはどこに保存されていますか?

これらの翻訳はどこに保存されていますか?私はlibcore.icu.LocaleDataまでコードをたどってきましたが、翻訳がどこにあるのかわかりません。たとえば、以下のコード(link)には、public String[] longMonthNames;が入居していますか?私はレポを盗んだので、リソースを見つけることができません。

package libcore.icu; 
public final class LocaleData { 
    // A cache for the locale-specific data. 
    private static final HashMap<String, LocaleData> localeDataCache = new HashMap<String, LocaleData>(); 
    static { 
     // Ensure that we pull in the locale data for the root locale, en_US, and the 
     // user's default locale. (All devices must support the root locale and en_US, 
     // and they're used for various system things like HTTP headers.) Pre-populating 
     // the cache is especially useful on Android because we'll share this via the Zygote. 
     get(Locale.ROOT); 
     get(Locale.US); 
     get(Locale.getDefault()); 
    } 
    // Used by Calendar. 
    public Integer firstDayOfWeek; 
    public Integer minimalDaysInFirstWeek; 
    // Used by DateFormatSymbols. 
    public String[] amPm; // "AM", "PM". 
    public String[] eras; // "BC", "AD". 
    public String[] longMonthNames; // "January", ... 
    public String[] shortMonthNames; // "Jan", ... 
    public String[] tinyMonthNames; // "J", ... 
    public String[] longStandAloneMonthNames; // "January", ... 
    public String[] shortStandAloneMonthNames; // "Jan", ... 
    public String[] tinyStandAloneMonthNames; // "J", ... 

私はこれを行う必要がある理由は、私は

+0

米国にロケールを強制するhttp://stackoverflow.com/questions/2900023/change-language-programatically-in-android –

+0

ありがとうございますが、それは簡単なものです。私は新しいロケールを作ろうとしています。 –

+0

あなたは何を達成しようとしていますか?ハックのように聞こえます –

答えて

0

の一部を上書きする必要があるため、Android向け翻訳が

/SDK /プラットフォーム/アンドロイド-21 /データ/ resをに格納されています/

関連する問題