Data dodania Pytanie
2017-07-26 18:07 Is there any way to test custom pluralization rules using Rspec in rails »
I have added custom pluralization rules for Korean locale and was wondering if there was a way to test this using Rspec.To add custom rules I have add...
(0) odpowiedzi
2017-07-20 14:07 How to support different "NumberDecimalSeparator" in Web.API? »
We have a Web.API application where we have to supported a Dutch and English language. For that we have set the culture as “nl” or “en” based ...
(1) odpowiedzi
2017-07-19 21:07 Rails 5: Can you pluralize two words in a string with two different counts? »
I'm building a view for a store that lists a summary of a product's reviews. I'm grouping the reviews by score, and I want a string at the top of each...
(1) odpowiedzi
2017-06-26 19:06 Why is yii2's internationalization module case sensitive? »
I have currently been dabbling with yii2's internationalization module but came across a curious behavior and was wandering. Why does Yii::t('app','N...
(1) odpowiedzi
2017-06-23 18:06 Rails 5: How Do I Get My Error Pages in the Public Folder for Different Locales to Display Other than "en? »
When I was converting my Rails apps from 3.2.13 to Rails 4 I asked this question: Rails 4 - Would Like To Do Custom Error Pages in Public Folder Using...
(0) odpowiedzi
2017-06-20 14:06 Javafx/Scalafx i18n simple switch (using fxml) »
I'm developing scalafx application (I mentioned javafx because what I'm facing is, basically, javafx problem - scalafx is just shell around it) and I ...
(0) odpowiedzi
2017-04-26 03:04 RAILS: How to eliminate `translation missing` from some I18n.t in production (I18n.t fallback enabled)? »
In my Rails 4.2 app, all modules are developed with I18n.t(). Here is an example of the index.html.erb: <table class="table table-hover"> &lt...
(2) odpowiedzi
2017-03-30 02:03 Rails select_tag with i18n translation »
I have the following select_tag and would like to have the labels translated. I am using Rails Internationalization (I18n) API Now, this code works h...
(2) odpowiedzi
2017-03-11 12:03 Rails: Setting locale appropriately to IP address »
I am trying to use request.location (geocoder gem), to set the locale appropriately to the clients IP address. This is what I've got: app/controll...
(1) odpowiedzi
2017-02-17 10:02 Check for hardcoded text in Rails views - I18n »
some of our devs (me included) don't always take it serious to put text in a localization file, result is a lot of hardcoded texts scattered around a ...
(2) odpowiedzi
2017-01-31 14:01 Django1.10 - /i18n/setlang/ CSRF token missing or incorrect »
After selecting a language in a language switcher form, I got a CSRF error: The form is in base.html <form action="{% url 'set_language' %}" meth...
(1) odpowiedzi
2017-01-11 20:01 How to get a database entry with a specific language »
Using I18n for Ruby on Rails 4.0.0 I need a database entry for English, even though I'm currently in local => "de". The code is = link_to tag.name, :...
(1) odpowiedzi
2017-01-04 17:01 How to remove or edit the pluralization for comments and likes in rails »
I am new to rails, and i am working on a rtl website! I am trying to fix the pluralization in comment.count and get_upvotes.size to be replaced by the...
(1) odpowiedzi
2016-12-11 17:12 Sinatra I18n Fallbacks using Rack::Locale »
I'm trying to set up a simple Sinatra app with I18n, following the recommended Sinatra recipe, and using Rack:Locale to determine the language. My ap...
(1) odpowiedzi
2016-11-30 13:11 rails 4 simple form association translation lookup (i18n) »
here's something that has annoyed me for some time, and I couldn't find a solution yet. Suppose I have a form with f.association :driver ,then ...
(0) odpowiedzi
2016-11-17 02:11 I18n clicking navbar link defaults back to English »
I'm following the railscast guide but for some reason, when I click on a link, the params locale is not being carried over. Here's my routes.db Rail...
(1) odpowiedzi
2016-10-22 19:10 angularjs translate dropdown list from i18n using ng-repeat »
My English language i18n translation json file assets/i18n/en.json is like the following (this is the english translation, I have several other files ...
(1) odpowiedzi
2016-10-19 15:10 Java: Send email to a Non-ASCII email address »
I want to send an email to a Non-ASCII email address and I am not sure what is the recommended procedure using JDK8. How should I deal with the follo...
(3) odpowiedzi
2016-09-19 18:09 How to maintain different country versions of same language in Django? »
I would like to have a few different versions of the same language in Django, customized for different countries (e.g. locale/en, locale/en_CA, locale...
(1) odpowiedzi
2016-09-14 23:09 Get current devise user in extended classes in rspec support file »
in my rails app I use devise for user authentication. I also use i18n for the whole website and each user has the possibility to choose her or his spe...
(0) odpowiedzi
2016-09-03 14:09 Translation of model properties »
I am developing an MVC framework (please don't question that, I know..) and currently designing a translation mechanism to maximally ease translation ...
(1) odpowiedzi
2016-08-27 16:08 Remove <a> tag from rails "link_to" methdo »
I need to remove <a> tag from rails link_to method. Here is current code and result: <%= link_to "ESP", :locale=>'es'%> <a href="/e...
(1) odpowiedzi
2016-08-25 18:08 toUpperCase on Android is incorrect for two-argument and default Greek and Turkish Locales »
I am having trouble with Greek and Turkish when using toUpperCase() with the default locale or more interestingly the two argument Locale constructor....
(1) odpowiedzi
2016-08-02 20:08 Is there a way to interpolate attribute values out of the box with i18n and Rails 4? »
I'm trying to present better validation error messages to users. For example, a given uniqueness validation message says something along the lines of:...
(1) odpowiedzi
2016-07-28 17:07 Coldfusion: reading ñ with cfspreadsheet action="read" »
I am reading an excel file using: <cfspreadsheet action="read" src="#theFile#" query="data" headerrow="1"> However, when d...
(0) odpowiedzi
2016-06-25 20:06 Dynamically loading I18n translations from gem into Rails Engine »
I've created a gem (TranslationsGem) which I use in multiple projects (an engine and a Rails app). This gem sets up several hashes which are loaded in...
(0) odpowiedzi
2016-06-25 17:06 How to get localized day-names in django? »
When using djangos (or better gettext's) localization mechanism, it's hard to get the current locale's day names. Usually, i would use calendar: cale...
(1) odpowiedzi
2016-05-20 14:05 How do I translate my hard-coded strings in swift 2.0? »
Despite all the info available on the web, I am still struggling to translate my hard-coded strings in Swift (target language: French) - How do I go a...
(2) odpowiedzi
2016-03-01 13:03 Rails 3.2: ActiveRecord model without i18n_key - how could it possible and how to fix? »
Models example: class ModelOne < ActiveRecord::Base ... end class ModelTwo < ActiveRecord::Base ... end From rails console: [1] pry(main)&g...
(1) odpowiedzi
2016-02-25 12:02 How to get the locale in the i18n file? »
In my Sinatra-based project I have a login route: # route to receive login form: sorry or logs in with cookie. sends home. post '/login' do redir...
(1) odpowiedzi
2016-02-16 13:02 Multi language database encoding in search engine »
I have a database(Mysql) in which I store more then 100 000 keywords with keyword in different languages. So an example if I have three colums [id] [t...
(1) odpowiedzi
2016-02-05 06:02 How to properly internationalize a Sinatra page? »
I have a Sinatra route file, which displays some page. <h2>Free, open song contest</h2> <h3>Sign up</h3> <form action="/si...
(1) odpowiedzi
2016-01-12 13:01 where to translate form field labels in django »
I am working on getting my site translations up to speed and I have got .po/.mo files working with all of my {% trans %} tags in my template, but I ca...
(1) odpowiedzi
2015-12-28 14:12 Rails I18n full error messages in RSpec Capybara feature tests »
I want to apply validation checks to my feature tests like: click_button 'Submit' expect(page).to have_content "Question can't be blank" I'm using...
(0) odpowiedzi
2015-11-12 10:11 How to integrate the language in the URL in Sinatra »
I have an application with many languages and now I want to integrate in the URL the language. Something like this: https://example.com/en/main/cars h...
(0) odpowiedzi