|
I'm using Translate behavior.
Here's the scenario: I save a translation on model 'Content' with the language Japanese.
Then I check the corresponding table 'contents' in my database and I see that my 'title' and 'body' fields are changed to the translated...
Answer Snippets (Read the full thread at stackoverflow):
It won't cause....
+ it will get saved in the i18n table.
Everything that you save will get saved in the contents table in the language you are currently using on the page .
Hi, Drop fields 'title' and 'body' from Your 'contents' table:)
Hey!
It is normal .
|
|
I have defined translated attributes and model names in the translation file and Modelname.human_attribute_name(...) returns the correctly translated attribute name, but the attribute names in the error messages are untranslated. What is needed that the...
Started by RainerB on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
And a screenshot of the properly translated output: http.
;%= f.error_message_on :title %> ...
|
|
If I write a LINQ to Entities query does that get translated to a native query that the provider understands (i.e. SqlClient)?
OR
Does it get translated to Entity SQL that the Entity Framework then translates to a native query and passes to the provider...
Started by Nevada on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Both LINQ to Entities and Entity SQL go.
LINQ to Entities does not get translated to Entity SQL.
|
Ask your Facebook Friends
|
I'm doing a localization of a Django app.
The front-end website works fine and the Django admin site picks up the selected language as well.
But it only applies the language settings in some places and uses the default English versions of field and column...
Started by TomA on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It turned out I was setting a translated version for name instead.
As of Django 1.0 - not sure of 1.1.
|
|
In ASCII, i wonder how is 65 translated to 'A' character? As far as my knowledge goes, 65 can be represented in binary but 'A' is not. So how could this conversion happen?
Started by tsubasa on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
This translation program will be eventually translated into machine code: that is also just a bunch of 0 and 1.
Only when you need to display strings, that numbers are 'translated' into character.
|
|
I found this question on SO , and then went to look at my university, and found the average number of languages that software engineering students speak is two to three.
I know this is not directly related to programming, but with the amount of companies...
Started by fmsf on
, 20 posts
by 20 people.
Answer Snippets (Read the full thread at stackoverflow):
Some documentation should be translated where the key may be in how in English, but certain public documents ....
Should be translated if it is not a technical documentation but more a user handbook because almost in other gears in a sense.
|
|
If i translate content with google translate and post it, will it be indexed as unique content?
Started by arw on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
So don't do it..
And the slightly longer answer is, yes it will be unique, but it will be useless to most visitors since no auto-translations are very good.
The short answer: yes as long as the content is unique to your site .
|
|
Hi all,
It seems Linq2sql doesn't know how to construct the TSQL while you transform linq2sql object into domain object with constructors. Such as:
from c in db.Companies select new Company (c.ID, c.Name, c.Location).Where(x => x.Name =="Roy");
But...
Started by Roy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
To get only 1 company you would need to change the first statement to:
Company c = (from c in db.Companies where c.ID = someId select c).First();
The... .
The first query is incorrect because the from statement will return a collection of company entities .
|
|
When using localized list of "choices" for a model field, the admin doesn't show the translated values in the list view.
Short example:
from django.utils.translation import ugettext_lazy as _ class OrderStates: STATES = ( (STATE_NEW, _("New")), (STATE...
Started by TomA on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This is probably a bug somewhere in Django, not calling... .
Hope this helps.
Actually, this should have been fixed some time ago, see Ticket #5287 .
Try using:
import gettext as _
Though, that may break if some of your translations use non-ascii values.
|
|
I have a C# application that reference a VB6 dll. When I pass null from C# into VB6 dll function, the null is translated as value Empty (value) in VB6, instead of Nothing (object). For example:
// function in vb6 dll that referenced by c# app Public Sub...
Started by tiftif on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
}
Edit - And I would agree wtih Sander Rijken's answer as to why Empty ... .
If oValue Is Nothing Then Set oValue = someObject ElseIf IsEmpty(oValue) Then Set oValue = someObject End If .. .
Have you tried:
Public Sub TestFunc(ByVal oValue As Variant) { .. .
|