arabic

Android strings.xml resource - arabic language and dynamic formatted strings

泄露秘密 提交于 2019-12-05 05:11:26
Hello I have a question about arabic formatting how should I properly format this strings, it seems i can't manage this: تحميل %1$s… تم تحميل الكلمات. %1$d/%2$d! This is in sublime text 2 - but i think that there is Left-to-Right order EDITED: In Eclipse this copied from Sublime Text gets messed up a little. I hire some person to translate from english to arabic strings.xml. He used Word editor but things get messed up when coping to eclipse and I suggested to changed it in Sublime Text, that I think will support it correctly like in Eclipse and is lighter editor. I see that in Sublime Text

How to display Arabic notations in left-to-right direction in QLineEdit/QLabel etc.?

痴心易碎 提交于 2019-12-05 04:32:22
问题 In Qt's implementation arabic notation is shown in right-to-left direction, thus any strings that contain arabic notations will be right-aligned. But what my application wants to do is showing all texts in left-to-right direction, whether it contains arabic notations or not. And all texts are left-aligned. An example is shown below: This is what I want to implement This is how QLineEdit displays texts containing arabic notations in its default way This is how QLabel does it EDIT: Paste the

How do I convert an Arabic String date to a java 8 date object?

随声附和 提交于 2019-12-05 02:17:32
I'm working on a web monitoring project in Arabic and I want to convert string date like this one: الاثنين 24 أبريل 2017 - 15:00 to Java 8 date object. How can I do that? Ole V.V. Edit: with thanks to slim and Meno Hochschild for inspiration: String dateTimeString = "الاثنين 24 أبريل 2017 - 15:00"; DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEEE d MMMM uuuu - HH:mm", new Locale("ar")); LocalDateTime dateTime = LocalDateTime.parse(dateTimeString, formatter); System.out.println(dateTime); This prints: 2017-04-24T15:00 The answers of @Ole and @slim are working, but not for the

Multilanguage UTF-8 website with Arabic

杀马特。学长 韩版系。学妹 提交于 2019-12-05 01:31:02
问题 I will be coding a website that will have Arabic as a supported language . With UTF8 unicode I believe I can cover Arabic alphabet. I've also read that it reads right to left so I guess I should align right when displaying on Arabic. I'm asking the community for experience and possible pitfalls . utf-8 unicode css selector to swith text alignment Thank you in advance for your input. 回答1: Reading http://www.w3.org/International/tutorials/bidi-xhtml/ and http://en.wikipedia.org/wiki

Chrome shows blank page on RTL language site until window is resized

谁都会走 提交于 2019-12-04 22:24:57
I just created an Arabic version a website and noticed that Chrome sometimes shows a totally blank page until the window is resized and then everything instantly becomes visible. Arabic is a RTL language, so the <html> tag has dir="rtl" lang="ar" added to it. This is the only difference between it and the English site. This is the site . You may have to click the logo a few times in order to see it show blank. I've noticed this problem too and I searched the internet in English and Arabic but couldn't find the cause of the problem. I found a workaround to fix it though; use the following

How to show Arabic text on TextView on Android?

一个人想着一个人 提交于 2019-12-04 21:18:12
In android Textview arabic text is not displaying properly it is breaking a word into alphabets. Is there any library or another way to resolve this issue? Shayan Pourvatan you can use Farsi Class to do this. import android.content.Context; import android.graphics.Typeface; public final class Farsi { public static boolean isFarsiConversionNeeded = true; private final static String szLamAndAlef = Character .toString((char) 0xfedf) + Character.toString((char) 0xfe8e); // Lam + Alef private final static String szLamStickAndAlef = Character .toString((char) 0xfee0) + Character.toString((char)

Rails 3 change default english numbers to arabic numbers

孤街醉人 提交于 2019-12-04 19:33:39
I want to change the default numbers from english to arabic when the user switches to the arabic interface. 13 => ١٣ 89 => ٨٩ What is the best way to tackle this problem? I add in helper module ARABIC_NUMBERS = %w(٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩) def ta numbers numbers = numbers.to_s if numbers.is_a? Integer results = numbers.chars.map { |char| ARABIC_NUMBERS[char.to_i] }.join end Check this code : https://github.com/gdotdesign/rails-arabic-convert/blob/master/app/helpers/convert_helper.rb . It's a helper to convert a english number to an arabic number. I came up with this quick solution. I added the

How to display Text in Arabic in UIlabel

醉酒当歌 提交于 2019-12-04 17:07:13
I am getting this string from server in response, which is actually in arabic " نريد أن نرى هذا في اللغة العربية " You can see this text in arabic on browser like this : نريد أن نرى هذا في اللغة العربية browser automatically shows text in arabic. for former i have put code tag so it is showing codes... Now I want to show it on UILabel in arabic fonts, how would I do that? Please help.. Thanks If you convert each 4 text digit decimal number in the server response string to a C int, then you can convert each character to an NSString using something like: int c = ... /* your 4 text digit unicode

Copy and Paste String (Persian, Arabic) in PHPStorm is Wrong

和自甴很熟 提交于 2019-12-04 16:29:29
问题 Copy and Paste String (Persian, Arabic) in PHPStorm is Wrong my string is: به نام خداوند بخشنده مهربان Describe In image: How can this problem be solved? 回答1: In the install directory, in the file bin/idea.properties , add one of the following: editor.new.rendering=true Use the new rendering engine which has rtl support. This is default since PhpStorm 2016.1. editor.disable.rtl=true This is only a workaround: characters will simply appear left-to-right instead. 来源: https://stackoverflow.com

Output Arabic/Thai text in Excel file using Photoshop JavaScript

梦想与她 提交于 2019-12-04 15:49:16
I have a script for photoshop which outputs the name of a text layer and layer content into Excel CSV file. It works fine if the text is english but if the text is Arabic/Thai it was displayed like this "??????". How can I display these texts properly? My script gets the layername and layer content like this: var iLayer = app.activeDocument.activeLayer.textItem; var LayerContents = iLayer.contents; Then output the names in the Excel file like this: var Names =[ ]; Names.push([LayerName + "," + LayerContents]); I tried changing the font style to Arial for Arabic and Tahoma for Thai, but it