Home | History | Annotate | Download | only in l10n
      1 /*
      2  * Copyright 2010, The Android Open Source Project
      3  *
      4  * Redistribution and use in source and binary forms, with or without
      5  * modification, are permitted provided that the following conditions
      6  * are met:
      7  *  * Redistributions of source code must retain the above copyright
      8  *    notice, this list of conditions and the following disclaimer.
      9  *  * Redistributions in binary form must reproduce the above copyright
     10  *    notice, this list of conditions and the following disclaimer in the
     11  *    documentation and/or other materials provided with the distribution.
     12  *
     13  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
     14  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     15  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     16  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
     17  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     18  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     19  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
     20  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
     21  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     23  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     24  */
     25 
     26 #ifndef ANDROID_APP_L10N_UTIL_H_
     27 #define ANDROID_APP_L10N_UTIL_H_
     28 #pragma once
     29 
     30 #include "base/string16.h"
     31 #include "jni/jni_utils.h"
     32 
     33 #define IDS_AUTOFILL_DIALOG_ADDRESS_NAME_SEPARATOR 0
     34 #define IDS_AUTOFILL_DIALOG_ADDRESS_SUMMARY_NAME_FORMAT 1
     35 #define IDS_AUTOFILL_DIALOG_ADDRESS_SUMMARY_SEPARATOR 2
     36 #define IDS_AUTOFILL_DIALOG_ADDRESS_SUMMARY_FORMAT 3
     37 #define IDS_AUTOFILL_ATTENTION_IGNORED_RE 4
     38 #define IDS_AUTOFILL_REGION_IGNORED_RE 5
     39 #define IDS_AUTOFILL_COMPANY_RE 6
     40 #define IDS_AUTOFILL_ADDRESS_LINE_1_RE 7
     41 #define IDS_AUTOFILL_ADDRESS_LINE_1_LABEL_RE 8
     42 #define IDS_AUTOFILL_ADDRESS_LINE_2_RE 9
     43 #define IDS_AUTOFILL_ADDRESS_LINE_3_RE 10
     44 #define IDS_AUTOFILL_COUNTRY_RE 11
     45 #define IDS_AUTOFILL_ZIP_CODE_RE 12
     46 #define IDS_AUTOFILL_ZIP_4_RE 13
     47 #define IDS_AUTOFILL_CITY_RE 14
     48 #define IDS_AUTOFILL_STATE_RE 15
     49 #define IDS_AUTOFILL_ADDRESS_TYPE_SAME_AS_RE 16
     50 #define IDS_AUTOFILL_ADDRESS_TYPE_USE_MY_RE 17
     51 #define IDS_AUTOFILL_BILLING_DESIGNATOR_RE 18
     52 #define IDS_AUTOFILL_SHIPPING_DESIGNATOR_RE 19
     53 #define IDS_AUTOFILL_EMAIL_RE 20
     54 #define IDS_AUTOFILL_USERNAME_RE 21
     55 #define IDS_AUTOFILL_NAME_RE 22
     56 #define IDS_AUTOFILL_NAME_SPECIFIC_RE 23
     57 #define IDS_AUTOFILL_FIRST_NAME_RE 24
     58 #define IDS_AUTOFILL_MIDDLE_INITIAL_RE 25
     59 #define IDS_AUTOFILL_MIDDLE_NAME_RE 26
     60 #define IDS_AUTOFILL_LAST_NAME_RE 27
     61 #define IDS_AUTOFILL_PHONE_RE 28
     62 #define IDS_AUTOFILL_AREA_CODE_RE 29
     63 #define IDS_AUTOFILL_PHONE_PREFIX_RE 30
     64 #define IDS_AUTOFILL_PHONE_SUFFIX_RE 31
     65 #define IDS_AUTOFILL_PHONE_EXTENSION_RE 32
     66 #define IDS_AUTOFILL_NAME_ON_CARD_RE 33
     67 #define IDS_AUTOFILL_NAME_ON_CARD_CONTEXTUAL_RE 34
     68 #define IDS_AUTOFILL_CARD_CVC_RE 35
     69 #define IDS_AUTOFILL_CARD_NUMBER_RE 36
     70 #define IDS_AUTOFILL_EXPIRATION_MONTH_RE 37
     71 #define IDS_AUTOFILL_EXPIRATION_DATE_RE 38
     72 #define IDS_AUTOFILL_CARD_IGNORED_RE 39
     73 #define IDS_AUTOFILL_FAX_RE 40
     74 #define IDS_AUTOFILL_COUNTRY_CODE_RE 41
     75 #define IDS_AUTOFILL_AREA_CODE_NOTEXT_RE 42
     76 #define IDS_AUTOFILL_PHONE_PREFIX_SEPARATOR_RE 43
     77 #define IDS_AUTOFILL_PHONE_SUFFIX_SEPARATOR_RE 44
     78 #define IDS_AUTOFILL_DIALOG_PROVINCE 45
     79 #define IDS_AUTOFILL_DIALOG_POSTAL_CODE 46
     80 #define IDS_AUTOFILL_DIALOG_STATE 47
     81 #define IDS_AUTOFILL_DIALOG_ZIP_CODE 48
     82 #define IDS_AUTOFILL_DIALOG_COUNTY 49
     83 #define IDS_AUTOFILL_DIALOG_ISLAND 50
     84 #define IDS_AUTOFILL_DIALOG_DISTRICT 51
     85 #define IDS_AUTOFILL_DIALOG_DEPARTMENT 52
     86 #define IDS_AUTOFILL_DIALOG_PREFECTURE 53
     87 #define IDS_AUTOFILL_DIALOG_PARISH 54
     88 #define IDS_AUTOFILL_DIALOG_AREA 55
     89 #define IDS_AUTOFILL_DIALOG_EMIRATE 56
     90 // Don't forget to update the count if you add a new message ID!
     91 // (And also update frameworks/base/core/java/android/webkit/L10nUtils.java)
     92 #define ANDROID_L10N_IDS_MESSAGE_COUNT 57
     93 
     94 namespace l10n_util {
     95 string16 GetStringUTF16(int message_id);
     96 string16 GetStringFUTF16(int message_id, const string16& a, const string16& b, const string16& c);
     97 std::string GetApplicationLocale();
     98 }
     99 #endif
    100