multilingual

multi language in Component

假如想象 提交于 2019-12-24 10:41:00
问题 I am using Swing, and I need the components to be able to display multiple languages at the same time (inside one component). However, the characters other than English characters are displayed as squares. The Components are just JTextPane , JEditorPane , JTextField , JTextArea and all the default stuff. What must I do to achieve the goal of multi language support? 回答1: On most platforms, the default logical font family specified by each component's UI delegate has the required glyphs for

Wordpress - Plugin translation not working

孤人 提交于 2019-12-24 10:20:05
问题 My plugin name is eventcal .Textdomain is eventcal . I have a language pack in /languages/ folder - eventcal-pt_BR.po and eventcal-pt_BR.mo . I have added plugin textdomain function public static function eventcalLoadTextdomain() { load_plugin_textdomain( 'eventcal', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); } // in __constructor() add_action( 'init', array(self::getInstance(), 'eventcalLoadTextdomain' )); but its not working when i am changing my site language to

I have a multilingual website. How do I add parameters or a URL without too much work?

安稳与你 提交于 2019-12-24 10:15:59
问题 I have a company website (Visual Studio / VB / ASP.NET 4.0). I localized my website in 10 different languages and cultures. The Problem: Although @Stefan noted that Google will not punish me for duplicate content, all of my URLs are the same. For instance, about.aspx in English is still about.aspx in French -- it just calls the page from the "fr" resource file instead of the "en" resource file and displays it accordingly. So the URL never changes , although the language on the page changes.

access the CI session in a pre controller codeigniter hook

空扰寡人 提交于 2019-12-24 03:27:55
问题 I am using a pre controller hook to detect and set the site language from the session/cookie/browser lang detection.. something like this answer: Codeigniter language I am also using the famous Tank Auth library to manage users and I am using the codeigniter Session class to store and manage the users sessions upon log in. Each user can specify the interface language he wants and store it in the database for future log ins. The lang info is copied from the DB to the session on every log in.

Umbraco V6 404 not handled properly according to culture

情到浓时终转凉″ 提交于 2019-12-24 03:08:34
问题 I have an umbraco site (umbraco v6), and I have set up custom 404 handling as per http://our.umbraco.org/Documentation/Using-Umbraco/Config-files/umbracoSettings/index. My content tree is as follows: Content Root Greek-Homepage Greek-Content Greek-Not-found (id: 1303) English-Homepage English-Content English-Not-found (id: 1304) And I've set up the <errors> tag as follows: <error404> <errorPage culture="default">1303</errorPage> <errorPage culture="el-GR">1303</errorPage> <errorPage culture=

What is it about AA and Danish Collation?

孤街浪徒 提交于 2019-12-24 00:39:02
问题 I have the following Perl script, intended to show collation in Danish. #!/usr/local/ActivePerl-5.16/bin/perl use 5.014_001; use utf8; use Unicode::Collate; use strict; use warnings; use Carp; use Data::Dump; use Encode qw( encode_utf8 ); use Unicode::Collate::Locale; binmode STDOUT, ':encoding(UTF-8)'; my @words =("AAI Document Type", "Apple", "Zebra"); my $coll = Unicode::Collate::Locale->new(locale => "da"); my @result = $coll->sort(@words); foreach my $item (@result){ print $item, "\n"; }

php source code to PO file generator

喜你入骨 提交于 2019-12-23 21:19:39
问题 I have to convert all my echo/print string from my php source code file to PO file (for the language translation ), is there any batch convector available for the same. 回答1: How I do this: make gettext run on your server setup a translation adapter (for example Zend_Translate with gettext adapter) use a good search tool to find all strings in your code and wrap them with something like $translationObject->translate(). Often the method is wrapped to be called __(). This will be at least partly

How to (properly) output multilingual text in Qt-Embedded?

狂风中的少年 提交于 2019-12-23 18:42:28
问题 My target system is: linux 3.3.7, Qt Embedded (open source edition) 4.8, Droid fonts (taken from fonts-droid_20111207+git-1_all.deb Debian package and copied into /usr/lib/fonts directory), Linux Framebuffer for main Qt GUI application, everything is build by Buildroot package. My test application is very simple: just one dialog box with a few static QLabel on it (one for Chinese, one for Arabic, one for Cyrillic, etc). When I run it on my linux desktop, all labels are shown correctly. But

Translate HTML files to another language

瘦欲@ 提交于 2019-12-23 16:53:14
问题 I have a website with Dutch text which I want to translate to English. Is there a fast way of doing this with keeping the HTML tags( <strong>,<span> ) in tact. I know I can just copy the parsed TEXT into a translator but this will remove the formatting. I also know that at the end I have to go trough the text manually to fix some minor spelling and grammar. 回答1: Online translators are good to turn foreign text into something that can be understood, but they are useless for producing quality

Google hreflang language confusion: Do I have to add hreflang for the page ITSELF?

六眼飞鱼酱① 提交于 2019-12-23 16:17:35
问题 On Google's hreflang documentation, in the 2-language example, it says: Imagine you have an English language page hosted at http://www.example.com/, with a Spanish alternative at http://es.example.com/. You can indicate to Google that the Spanish URL is the Spanish-language equivalent of the English page in one of three ways: HTML link element in header. In the HTML <head> section of http://www.example.com/, add a link element pointing to the Spanish version of that webpage at http://es