Paypal: Is there any way to make PayPal ExpressCheckout in Arabic Language? - ruby-on-rails-3

I'm just searching a week to figure out how to make this page (below attached image) in Arabic? Although I came to know that paypal don't have LOCALECODE for Arabic Language. Is there any way to skip this page or make it in Arabic? Or whole paypal transaction inside my website without not redirecting Sandbox? Any resource or reference would be a lot help for me.
Also, I'm working on Ruby on Rails application.
Thanks.

These are the current languages supported by PayPal express checkout. Also keep in mind this link has all the countries that PayPal supports. Hope this helps:
https://www.paypal.com/uk/webapps/mpp/country-worldwide
AT language_0 de_DE
AT language_1 en_US
AU language_0 en_AU
BE language_0 en_US
BE language_1 nl_NL
BE language_2 fr_FR
C2 language_0 en_US
C2 language_1 zh_XC
C2 language_2 fr_XC
C2 language_3 es_XC
CH language_0 de_DE
CH language_1 fr_FR
CH language_2 en_US
CN language_0 zh_CN
default language_0 en_US
default language_1 fr_XC
default language_2 es_XC
default language_3 zh_XC
DE language_0 de_DE
DE language_1 en_US
ES language_0 es_ES
ES language_1 en_US
FR language_0 fr_FR
FR language_1 en_US
GB language_0 en_GB
GF language_0 fr_FR
GF language_1 en_US
GI language_0 en_US
GP language_0 fr_FR
GP language_1 en_US
IE language_0 en_US
IT language_0 it_IT
IT language_1 en_US
JP language_0 ja_JP
JP language_1 en_US
MQ language_0 fr_FR
MQ language_1 en_US
NL language_0 nl_NL
NL language_1 en_US
PL language_0 pl_PL
PL language_1 en_US
RE language_0 fr_FR
RE language_1 en_US
US language_0 en_US
US language_1 fr_XC
US language_2 es_XC
US language_3 zh_XC

The previous answer is out of date. It appears that PayPal now offers Arabic.
https://www.paypal.com/eg/webapps/mpp/sign-up-arabic

Related

cannot write Chinese in linux

Question:I can generate Chinese watermark normally in windows environment and macos environment, but it reports an error in linux environment.
linux environment
java 1.8
pdfbox 3.0.0-alpha2
The system seems to have successfully installed the font
fc-list |grep STFangsong
/usr/share/fonts/zh_CN/STFANGSO.TTF: STFangsong:style=Regular
java.lang.IllegalArgumentException: No glyph for U+FFFD (?) in font STFangsong
at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.encode(PDCIDFontType2.java:378) ~[pdfbox-3.0.0-alpha2.jar!/:3.0.0-alpha2]
at org.apache.pdfbox.pdmodel.font.PDType0Font.encode(PDType0Font.java:443) ~[pdfbox-3.0.0-alpha2.jar!/:3.0.0-alpha2]
at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:335) ~[pdfbox-3.0.0-alpha2.jar!/:3.0.0-alpha2]
at org.apache.pdfbox.pdmodel.font.PDFont.getStringWidth(PDFont.java:366) ~[pdfbox-3.0.0-alpha2.jar!/:3.0.0-alpha2]
at com.tencent.converter.service.PDFBox.processTextOnePage(PDFBox.java:117) ~[classes!/:0.0.1-SNAPSHOT]
at com.tencent.converter.service.PDFBox.addTextAllPageWAtermark(PDFBox.java:96) ~[classes!/:0.0.1-SNAPSHOT]
at com.tencent.converter.service.PDFBox.addTextWatermark(PDFBox.java:83) ~[classes!/:0.0.1-SNAPSHOT]
at com.tencent.converter.service.PDFBox.textWatermark(PDFBox.java:68) ~[classes!/:0.0.1-SNAPSHOT]
PDFont font = PDType0Font.load(doc, new FileInputStream("/usr/local/services/converter-1.0/lib/STFANGSO.TTF"), false);
And I tried some fonts that support Chinese, all have the same problem
I found a solution to the problem that works for me.
启动服务时 强制指定编码
java -Dfile.encoding=utf-8 -jar

how to activate LDAPLoginModule in Apache Karaf 3.0.3

I want to active Ldap Login Module in apache karaf 3.0.3.
My karaf-jaas-module.xml is ;
.
.
.
<jaas:config name="karaf" rank="2">
<jaas:module className="org.apache.karaf.jaas.modules.ldap.LDAPLoginModule" flags="required">
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory
connection.username=admin
connection.password=xxxxxxx
connection.protocol=
connection.url=ldap://activedirectory_host:389
user.base.dn=cn=orcladmin,cn=users,dc=vmldapdevelop,dc=com
user.filter=(sAMAccountName=%u)
user.search.subtree=true
role.base.dn=ou=Groups,ou=there,DC=local
role.name.attribute=cn
role.filter=(member=%nsdn)
role.search.subtree=true
authentication=simple
</jaas:module>
</jaas:config>
.
.
.
And i wrote jaas:realm-list in karaf console and not seen LdapLoginModule.
karaf#root()> jaas:realm-list
Index | Realm Name | Login Module Class Name
----------------------------------------------------------------------------
1 | karaf | org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
2 | karaf | org.apache.karaf.jaas.modules.publickey.PublickeyLoginModule
How can i do this?
I suspect that the xml is maybe in the wrong place in the bundle. it should be in OSGI-INF/blueprint like other blueprint contexts. You also need to have the correct namespace defs in the header of the blueprint xml.
You can check if your blueprint xml is processed by doing bundle:services . You should see a BlueprintContainer service. If not then the blueprint is either not picked up at all or the extender finds an error. You can use the diag command to show blueprint errors.
Yes its in blueprint folder. And this folder is in jaas_module bundle. But change anything in this xml, karaf doesn't seen it. Because its override it.
I solve my problem. I create new xml file, which name is ldap-module.xml and my configuration is in it. And i put this xml in deploy folder.
So, my new xml override other xml and when i write "jaas:realm-list" on karaf console, i saw this output ;
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (3.0.3)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
karaf#root()>
karaf#root()>
karaf#root()>
karaf#root()> jaas:realm-list
Index | Realm Name | Login Module Class Name
-----------------------------------------------------------------------
1 | karaf | org.apache.karaf.jaas.modules.ldap.LDAPLoginModule
karaf#root()>
Thanks.

Supported languages contains an invalid value

When I build with Flash Builder 4.6 with Apache Flex 4.9.1 and Air 3.7, I get an error indicating a problem with my "supportedLanguages" node.
I have tried all of the following and all have failed:
This way worked in previous versions of the flex sdk:
<supportedLanguages>en es de fr ja ko pt ru zh ar pl</supportedLanguages>
Second attempt was to add local code:
<supportedLanguages>en_US es_ES de_DE fr_FR ja_JP ko_KR pt_BR ru_RU zh_CN ar_SA pl_PL</supportedLanguages>
I tried adding commas:
<supportedLanguages>en_US,es_ES,de_DE,fr_FR,ja_JP,ko_KR,pt_BR,ru_RU,zh_CN,ar_SA,pl_PL</supportedLanguages>
I have local directories for each locale specified in:
E:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.9.1_3.7\frameworks\locale
E:\dev\myapp\src\locale
I also use this line for the compiler:
-swf-version=20 -locale=en_US,es_ES,de_DE,fr_FR,ja_JP,ko_KR,pt_BR,ru_RU,zh_CN,ar_SA,pl_PL -allow-source-path-overlap=true -source-path=locale/{locale}
If I can avoid it, I'll never develop in Flex again. Consider this question no longer valid due to the lack of support from Adobe.

The admonition icons are not rendered in generated pdf

I'm using ASCIIDOC for the first time , the problem is that after generating the pdf file, the admonition icons are no more rendered.
PS: it's rendered in the html file.
Here's an example:
IMPORTANT: Tout fichier utlisé doit être ajouté dans le Makefile sinon le compilateur ne le voit pas lors de la compilation.
THis is the command i used :
a2x -f pdf --fop myfile.xml
a2x calls dblatex, you have to set the path for the icons as a dblatex-option, f.ex:
a2x -f pdf --icons --dblatex-opts='-V -T db2latex -I /etc/asciidoc/images/icons' test.txt
(When you use Apache FOP instead of dblatex you can set the icons path as described in the book "DocBook XSL: The Complete Guide".)

Prestashop - PayPal module doesn't appear after install

With the version 1.4.9 of Prestashop, I'm trying to install the PayPal module; downloaded from the official PS module repository, the installation ends successfully; but when I refresh the modules list it doesn't appear...
I've tried to install the module using the backend interface and also uploading the unzipped plugin to the /modules/ folder of the shop.
There are no errors shown and no disk space limitations.
Someone having/had same problem? I'm not new to PS and I've never had this problem..
Prestashop continued to alert me "All the modules cannot be loaded due to memory limit restriction, please increase your memory limit value on your server configuration"; searching on Prestashop Forum, I found this:
http://www.prestashop.com/forums/topic/185375-solucionado-instalar-paypal/
And doin' this
Contacta con tu hosting, para que te aumenten el memory limit, puedes intentarlo tu, por ejemplo añadiendo esto:
ini_set('memory_limit','128M');
en el fichero /config/config.inc.php.
saved my day! In fact, Prestashop didn't load all modules and I didn't see PayPal after installation, while now is there :)