multilingual

How to access to a property defined in messages.properties file?

半世苍凉 提交于 2019-11-28 04:53:52
I have a Groovy Grails application and I want to access programmatically to a property defined in messages.properties. As a test, I've tried the following statement: println "capacity.created: ${messages.properties['capacity.created']}" But it doesn't work (throws an exception). Any help is welcomed. Luis For reading property files in Groovy you can use the utility class ConfigSlurper and access the contained properties using GPath expressions. However, you have to be aware that ConfigSlurper doesn't support standard Java property files. Normally the ConfigSlurper will be used to read .groovy

How to use multilanguage database schema with ORM?

狂风中的少年 提交于 2019-11-28 04:46:33
Good day! I'm searching for the best way to implement multilanguage database schema, the approach I use is the same as here: What are best practices for multi-language database design? (one table with language neutral data and one for all translation). It seems to be good and clean and doesn't limit number of possible languages. But I want to use a simple ORM (like LINQ in C#, Outlet for PHP etc) where each table is mapped to entity class. This can work, but queries became more complex. May be there are some special techniques to use such DB shema with ORM? Or I can benefit from more complex

Should default language of multilingual website be a part of the URL? [closed]

前提是你 提交于 2019-11-28 03:59:25
问题 I have set up a multilingual website, whose default language is English and it is translated in many more languages. We have chosen for the subdirectory URL strategy, so that our URLs are like example.com/en , example.com/fr etc. Should the default language be omitted from those URLs? So instead of example.com/en example.com/fr example.com/de we could use example.com (default site language, EN in this case) example.com/fr example.com/de Which is better in terms of SEO, UX, best practices? p.s

How to make a Multilanguage website [closed]

ぃ、小莉子 提交于 2019-11-28 03:58:36
Can any body tell me how to make a dynamic multilanguage website in PHP and MySQL? I have no idea about it. I searched on Google and didn't find any good solutions. Can any one provide me with a step by step guide? If possible make a demo for a multilanguage website. Or please refer me to any link where it explains the details about it. Edurne Pascual Short answer: there is no short answer, as there are a lot of variables to consider, and plenty of work to do. So... Long answer: I'm going to break it down as well as I can, but there isn't a "good for all" answer to a question as broad as yours

Django site with 2 languages

瘦欲@ 提交于 2019-11-28 03:09:15
I want to develop a site with 2 languages, a default one, my native language and an optional English. I plan to have my domains as such: www.mydomain.com/tr/ www.mydomain.com/en/ By default, once a user enter mydomain.com. they will be redirected to /tr/ version and select to go to the /en/ if they want via a top menu. And here is my question. What is the best Django way to maintain both languages, please note that I don't want automatic translation but I want to maintain texts for both languages myself. Thanks As I see it, you have two main options here: (1) You can keep two separate copies

Making multi-language ios app [closed]

Deadly 提交于 2019-11-28 02:59:34
I need to build an app which will be multilingual. For instance, the app will be released in France and the Netherlands. The user needs to select a language when the app first start for the first time. Is there an easier way to do this? In Xcode I saw something about localizations. Does this have anything to do with it? Todd Hopkinson These are great resources for your localization efforts: Apple's own Internationalization Programming Topics How to Localize an iPhone App tutorial Localization Guide for iPhone Xcode 6.0 : It provides wonderful features for Internationalisation and Localisation.

C# Creating a setup for multi-language

泪湿孤枕 提交于 2019-11-27 22:23:26
问题 I have added multi-language using the short article below. When you add for example German language you will have these files: formMain.resx formMain.de-DE.resx formMain.Designer.cs formMain.cs In first file you will have resources for neutral language, like strings, images, .. So now you need to add also resources for strings used in code. Add a new resource file and name it formMain.Strings.resx Then i will enter name, value pair for every string that should be translated. When you add

How to make a MediaWiki site multilingual

拥有回忆 提交于 2019-11-27 21:00:02
问题 I've installed a MediaWiki site. I think default MediaWiki supports only one language which is configured during installation. Is there a way in MediaWiki to support two or more languages like wikipedia.org? Available languages for a page should be listed on left side like Wikipedia, and when a user clicks a language, the version of the page in the selected language can be seen. What is the conventional way to support multilingualism? 回答1: There are two different ways to make a multilingual

Change language dynamically using androids multilanguage support?

痴心易碎 提交于 2019-11-27 20:43:41
Is there are way to switch between different languages within an app using androids multilanguage support ( values-de folder for german and value-en folder for english)? This is not really supported but possible by changing the Configuration object's "locale" field [ Google Groups Post ] Configuration c = new Configuration(getResources().getConfiguration()); c.locale = Locale.GERMAN; getResources().updateConfiguration(c, getResources().getDisplayMetrics()); Note that this alone will only effect future strings, not ones already displayed on the screen. You'd want to do this from a different

MySQL collation to store multilingual data of unknown language

烂漫一生 提交于 2019-11-27 20:27:49
问题 I am new to multilingual data and my confession is that I never did tried it before. Currently I am working on a multilingual site, but I do not know which language will be used. Which collation/character set of MySQL should I use to achieve this? Should I use some Unicode type of character set? And of course these languages are not out of this universe, these must be in the set which we mostly use. 回答1: You should use a Unicode collation. You can set it by default on your system, or on each