PDA

View Full Version : ارور به string ها



hosseinaryai
پنج شنبه 01 آبان 1393, 21:31 عصر
یه اتفاق خیلی مسخره .. من برنامه امو توی eclipes نوشتم .. حالا می خوام خروجی apk بگیرم ازش اما مدام ارور به تمام string هام میگیره .. موضوع چیه ؟

StoPpeR
پنج شنبه 01 آبان 1393, 21:39 عصر
ارور ها در فایل strings.xml هستن یا جاهایی که بهشون در کد های جاوا ارجاع دادین؟
متن ارور ها رو هم بذارین

hosseinaryai
جمعه 02 آبان 1393, 08:14 صبح
تمام string های فایل strings.xml رو ارور میده ..

124886



"app_name" is not translated in "af" (Afrikaans), "am" (Amharic), "ar" (Arabic), "bg" (Bulgarian), "ca" (Catalan), "cs" (Czech), "da" (Danish), "de" (German), "el" (Greek), "en-rGB" (English: United Kingdom), "en-rIN" (English: India), "es" (Spanish), "es-rUS" (Spanish: United States), "et-rEE" (Estonian: Estonia), "fa" (Persian), "fi" (Finnish), "fr" (French), "fr-rCA" (French: Canada), "hi" (Hindi), "hr" (Croatian), "hu" (Hungarian), "hy-rAM" (Armenian: Armenia), "in" (Indonesian), "it" (Italian), "iw" (Hebrew), "ja" (Japanese), "ka-rGE" (Georgian: Georgia), "km-rKH" (Khmer: Cambodia), "ko" (Korean), "lo-rLA" (Lao: Lao People's Democratic Republic), "lt" (Lithuanian), "lv" (Latvian), "mn-rMN" (Mongolian: Mongolia), "ms-rMY" (Malay: Malaysia), "nb" (Norwegian Bokmål), "nl" (Dutch), "pl" (Polish), "pt" (Portuguese), "pt-rPT" (Portuguese: Portugal), "ro" (Romanian), "ru" (Russian), "sk" (Slovak), "sl" (Slovene), "sr" (Serbian), "sv" (Swedish), "sw" (Swahili), "th" (Thai), "tl" (Tagalog), "tr" (Turkish), "uk" (Ukrainian), "vi" (Vietnamese), "zh-rCN" (Chinese: China), "zh-rHK" (Chinese: Hong Kong), "zh-rTW" (Chinese: Taiwan, Province of China), "zu" (Zulu)

Issue: Checks for incomplete translations where not all strings are translated
Id: MissingTranslation

If an application has more than one locale, then all the strings declared in one language should also be translated in all other languages.

If the string should not be translated, you can add the attribute translatable="false" on the <string> element, or you can define all your non-translatable strings in a resource file called donottranslate.xml. Or, you can ignore the issue with a tools:ignore="MissingTranslation" attribute.

By default this detector allows regions of a language to just provide a subset of the strings and fall back to the standard language strings. You can require all regions to provide a full translation by setting the environment variable ANDROID_LINT_COMPLETE_REGIONS.

You can tell lint (and other tools) which language is the default language in your res/values/ folder by specifying tools:locale="languageCode" for the root <resources> element in your resource file. (The tools prefix refers to the namespace declaration http://schemas.android.com/tools.)

[]

storm_saeed
جمعه 02 آبان 1393, 09:28 صبح
به اینجا برید
"Window" > "Preferences" > "Android" > "Lint Error Checking"
و MissingTranslation رو از error به warning تغییرش بدید

hosseinaryai
جمعه 02 آبان 1393, 13:35 عصر
به اینجا برید
"Window" > "Preferences" > "Android" > "Lint Error Checking"
و MissingTranslation رو از error به warning تغییرش بدید

ممنونم بابت راهنماییت .. فعلن جواب داد اما به نظرم باید یه جای دیگه بلنگه .. آخه من هفت تا پروژه با همین ورژن اکلیپس و همین تشکیلات ساختم اما هیچکدوم یه همچین اروری بهم ندادن اما اینو نمی دونم چرا اینجوری کرد ..

storm_saeed
جمعه 02 آبان 1393, 14:06 عصر
ممنونم بابت راهنماییت .. فعلن جواب داد اما به نظرم باید یه جای دیگه بلنگه .. آخه من هفت تا پروژه با همین ورژن اکلیپس و همین تشکیلات ساختم اما هیچکدوم یه همچین اروری بهم ندادن اما اینو نمی دونم چرا اینجوری کرد ..
من چون دیگه به اندروید استودیو سوییچ کردم فقط یادمه که اگه یه جا رو تو اکلیپس میزدین lint error ها کلا عوض میشدن یعنی اول که اکلیپس میریزین این warning ولی با زدن اون دکمه هه عده زیادی از اونها از warn به error تغییر میکردن که یکیش هم همینه