Questions tagged [mobility]

Mobility is a pluggable translation framework for Ruby.

Mobility is a ruby gem for storing and retrieving translations as attributes on a class. Storage of translations is handled by customizable "backends" which encapsulate different storage strategies, including translatable columns and model translation tables, as well as database-specific storage solutions such as jsonb and Hstore (for PostgreSQL).

85 questions
7
votes
1 answer

In Erlang, is it possible to send a running process to a different node?

I have been researching Mobile Agents, and was wondering if it is possible to send a running process to another node in erlang. I know it is possible to send a process on another node a message. I know it is possible to load a module on all nodes…
Matthew Sowders
  • 1,640
  • 1
  • 19
  • 32
7
votes
1 answer

How can i create landscape PDF using android native PdfDocument API?

I am using PdfDocument API to write a PDF from View using Android Problem If am writing PDF of A4 size. How can i make in landscape mode? Thanks in Advance.
Karthiknew
  • 93
  • 2
  • 6
4
votes
2 answers

Four digit Pin Entry/ OTP screen in iOS

Can anyone suggest me how to create a 4 digit pin entry screen like One time password, User will enter and one circle will be checked/darken. I know I can create this by using images and hidden text field. But I am unable to decide best way for the…
Sundeep Saluja
  • 1,089
  • 2
  • 14
  • 36
4
votes
1 answer

Movilizer - getQuestionClientKey() only working when text is declared?

Given the following code: x
Lucke
  • 221
  • 1
  • 4
3
votes
1 answer

How to validate translations using locale or fallthrough accessors in mobility?

How can I validate a model with locale or fallthrough accessors with mobility gem using the accessors on creation or updating? Using mobility gem: v1.0.5 c = Category.new(name_en: 'Cat. 1', name_de: 'Kat. 1') c.valid? # => false c.errors # Should…
phlegx
  • 2,618
  • 3
  • 35
  • 39
3
votes
1 answer

Mobiliy gem: Adding translations to an existing model (that already has a lot of records)?

What's the easiest way to add translation capabilities to an existing model and automatically migrate the existing records? The globalize gem provides a method create_translation_table with an option migrate_data: true, is there an equivalent for…
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
3
votes
2 answers

How to fetch records in pages in Android

I want to use the SQLite clause LIMIT and OFFSET, so that I can fetch my records in pages. But, though I can find the LIMIT clause in the SQLiteQueryBuilder.query() which would effectively limit the number of record in my result. Couldn't find the…
Codevalley
  • 4,593
  • 7
  • 42
  • 56
3
votes
1 answer

WSO2 Enterprise Mobility Manager, Error self signed certificate getting chain

I'm trying to set up WSO2 Enterprise Mobility Manager. I'm following the instructions on the official documentation. I have a problem when generating certificates (step 4, c) https://docs.wso2.org/display/EMM100/iOS+Server+Configurations When I…
user1635536
3
votes
1 answer

How mobile and jQuery friendly is WebForms (vs MVC) version 4.0?

I believe MVC supports browser sniffing and switching views based on the type and/or resolution. In the ongoing debate on our team between starting a new project with Webforms or MVC (version 4.0), does Webforms have this kind of support? If not,…
Rick Levin
  • 41
  • 2
2
votes
1 answer

How to use pg_search_scope with Mobility for translated attributes?

how can i use pg_search_scope in combination with Mobility for translated attributes? Available languages are :de and :en. Searching for category names return empty results. There mus be a way to search for locale_accessors, in my case it should be…
axcr
  • 21
  • 1
  • 2
2
votes
2 answers

Rails translate rich text with Mobility and ActionText as backend?

Mobility has a syntax to translate Rails ActiveRecord strings and text: class Word < ApplicationRecord extend Mobility translates :content end On the other hand, here is the syntax to declare rich text with ActionText: class Word <…
2
votes
1 answer

How to access one project classes from other project While using multiple project with one Workspace

I am using two different project within one workspace. I have one base(Say Unity-iPhone) project and i drag and drop another iOS project (Say InnerApp). Each file and folder are visible in base project as attached screenshot. I have also added the…
VipinYadav
  • 808
  • 4
  • 16
2
votes
1 answer

Unable to order by translated column in Rails using Mobility

This question is based on an issue posted to the Mobility GitHub project. Context Rails: 5.0.6 Mobility: 0.4.2 (with table backend) I'm working with an articles table that supports multiple article types (e.g., blog post, case study, knowledge…
partydrone
  • 507
  • 4
  • 15
2
votes
2 answers

Accessing "real_field_non_translated"? - Mobility

Is there a way, via ActiveRecord, to access the "real_field" (let's say)? For example. If I have a Model Company and do Company.create(name: "My Company Name") (with I18n.locale = :en), that name value won't be saved in the Company record, but in…
Nick L Scott
  • 712
  • 1
  • 8
  • 21
2
votes
1 answer

Could not install Mobility gem on Rails plugin

I'm creating a Rails plugin which uses Mobility gem. I can see the installer listed when I do rails generate --help But then if I run rails generate mobility:install I get this totally weird error: Could not find generator 'mobility:install'.…
1
2 3 4 5 6