translation

Translations editor not enabled in Android Studio

孤街醉人 提交于 2019-12-11 07:57:26
问题 I'm trying to translate a strings.xml file on Android Studio but it seems like the Translations Editor is not enabled (it does not appear as an option when I right click on the strings.xml file). I've tried deleting and installing back Android Studio but it's still the same; any ideas on how to solve? Thank you in advance! this is the "no enabled action found message I get 回答1: you have to open the string.xml file, then you will see the open editor option on the upper right side 回答2: Reopen

How to display a message in the default locale when the message is not available in the current locale ? Prezent Translations

依然范特西╮ 提交于 2019-12-11 06:47:54
问题 I'm working on a multilingual website, using the Prezent bundle to translate my entities. Actually, the input in all the locales works, but I have some issues to display messages when they are not defined in the current locale. Here is an extract of my Category entity (the field "name" is translated) : /** * @ORM\Entity(repositoryClass="App\Repository\CategoryRepository") */ class Category extends TranslatableEntity { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */

What is the recomended way / best practice to Poedit translate strings without a source keyword?

时光怂恿深爱的人放手 提交于 2019-12-11 06:44:25
问题 I'm developing a Zend Framework 2 application an having a problem with translations. Actually in the view scripts a can use the view helper Translate. Since I defined "translate" as a source keyword in Poedit ( [Poedit menu] -> Catalogue -> Properties... -> Source keywords ) the strings are identified by the tool and added to the tranlation list. But there are also some strings at other places, where I cannot use the/a view helper, e.g. in form classes or in the navigation. How should this be

Drupal 8: How to create multi lingual menu item from .links.menu.yml

匆匆过客 提交于 2019-12-11 06:20:01
问题 So, at many places, i.e. here: https://www.drupal.org/docs/8/api/menu-api/providing-module-defined-menu-links It's explained how to add menu item to some existing menu from module_name.links.menu.yml of your module. Problem is that menu items can be translatable (from back-end), but I didn't find anywhere how to add menu items in multiple languages? Is that possible at all? So, I have one menu, I want to add one menu item, but on each language that menu item should have different title and

Is there any HTML to WikiText translator?

百般思念 提交于 2019-12-11 05:54:40
问题 Is there any HTML to WikiText translator? I need to translate tables with hyperlinks and images inside. 回答1: I found this html2wiki xslt stylesheet. It might inspire you. 回答2: I've had great success with this html2wiki online service. I converted a large sample of HTML to MediaWiki, and it was almost flawless. 来源: https://stackoverflow.com/questions/2162386/is-there-any-html-to-wikitext-translator

Options for localizing web app

你离开我真会死。 提交于 2019-12-11 05:43:46
问题 I'm working on an international website (PHP, custom lightweight MVC framework) which needs to show content in the user's native language. Content will primarily be text, but may be images as well. Our current solution is one giant file, with separate functions for every piece of text to be translated, and a switch case in each function. This has become terrible to maintain and ins't particularly scalable either. Our priorities are performance, maintainability (if we need to fix a bug or make

Configure Translation component in Symfony 2 to use gettext

落爺英雄遲暮 提交于 2019-12-11 05:19:17
问题 Symfony 2 as version 2.1 supports gettext (MO and PO files). I have following configuration ( app/config/config.yml ): framework: translator: { fallback: "en" } default_locale: "fa_ir" ... How can I configure to support for mo files? 回答1: I found without any configuration I can put messages.fa_ir.mo in Resources/translations directory of bundle and Symfony2 itself will find it... 来源: https://stackoverflow.com/questions/13218175/configure-translation-component-in-symfony-2-to-use-gettext

Asp Mvc Resources Global doesn't work

跟風遠走 提交于 2019-12-11 04:07:44
问题 this is my scenario: I have a multilanguage Asp.Net Mvc Application. Here is my localized default route: routes.MapRoute( name: "DefaultLocalized", url: "{lang}/{controller}/{action}/{id}", constraints: new { lang = @"(\w{2})|(\w{2}-\w{2})" }, // en or en-US defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } My ControllerActivator: public class LocalizedControllerActivator : IControllerActivator { private string _DefaultLanguage = "it"; public IController

How to solve the “Can't mass-assign protected attributes: translations_attributes” error?

北城余情 提交于 2019-12-11 02:47:01
问题 I am using Ruby on Rails (3.2.2), globalize3 (0.2.0) and batch_translations (0.1.2) ruby-gems. I would like to solve the following problem generated when using the batch_translations ruby-gem: ActiveModel::MassAssignmentSecurity::Error in Admin::ArticlesController#update Can't mass-assign protected attributes: translations_attributes In my ROOT_RAILS/Gemfile file I have: ... gem 'globalize3' gem 'batch_translations' In my ROOT_RAILS/app/models/admin/article.rb file I have: class Admin:

How to translate the application name in Django CMS Admin?

本秂侑毒 提交于 2019-12-11 02:44:29
问题 How can I translate the application name in the Django CMS admin? See the screenshot: 回答1: The answer below was correct for Django 1.4 or 1.5, I believe. For more modern answer, see https://stackoverflow.com/a/32431808/1067717 Have a look at this previously asked question on the similar topic for internationalization in Django. Internally, it uses Model._meta.app_label to display the application name. Inspect admin view and its template for further information. 回答2: OK. I have found how to