AW: [OFBiz] Dev - i18n for entity Engine Values

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

AW: [OFBiz] Dev - i18n for entity Engine Values

Tapio Reisinger
this part was missing. sorry...

>
>This is the code which we add to the entitymodel:
>
>
><!-- ========================================================= -->
>  <!-- org.ofbiz.common.status -->
>  <!-- ========================================================= -->
>
>    <entity entity-name="StatusItem"
>            package-name="org.ofbiz.common.status"
>            title="Status Entity"
>            default-resource-name="CommonEntityLabels_fr"
>    enable-lock="false"
>    no-auto-stamp="false"
>    never-cache="false"
>    auto-clear-cache="true">
>      <field name="statusId" type="id-ne"></field>
>      <field name="statusTypeId" type="id-ne"></field>
>      <field name="statusCode" type="short-varchar"></field>
>      <field name="sequenceId" type="id"></field>
>      <field name="description" type="description"></field>
>      <prim-key field="statusId"/>
>      <relation type="one" fk-name="STATUS_TO_TYPE" >rel-entity-name="StatusType">
>        <key-map field-name="statusTypeId"/>
>      </relation>
>    </entity>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: AW: [OFBiz] Dev - i18n for entity Engine Values

David E. Jones

You shouldn't have the "_fr" in the default-resource-name.

-David


On Aug 16, 2005, at 8:51 AM, Tapio Reisinger wrote:

> this part was missing. sorry...
>
>
>>
>> This is the code which we add to the entitymodel:
>>
>>
>> <!-- ========================================================= -->
>>  <!-- org.ofbiz.common.status -->
>>  <!-- ========================================================= -->
>>
>>    <entity entity-name="StatusItem"
>>            package-name="org.ofbiz.common.status"
>>            title="Status Entity"
>>            default-resource-name="CommonEntityLabels_fr"
>>         enable-lock="false"
>>         no-auto-stamp="false"
>>         never-cache="false"
>>         auto-clear-cache="true">
>>      <field name="statusId" type="id-ne"></field>
>>      <field name="statusTypeId" type="id-ne"></field>
>>      <field name="statusCode" type="short-varchar"></field>
>>      <field name="sequenceId" type="id"></field>
>>      <field name="description" type="description"></field>
>>      <prim-key field="statusId"/>
>>      <relation type="one" fk-name="STATUS_TO_TYPE" >rel-entity-
>> name="StatusType">
>>        <key-map field-name="statusTypeId"/>
>>      </relation>
>>    </entity>
>>
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: AW: [OFBiz] Dev - i18n for entity Engine Values - I don't give up

Tapio Reisinger
David,

I have no solution so far.

As I wrote, it didn't work without the "_fr" as well (see code below). I
know there is workaround, changing the values directly in the database
itself.

Is there something else that I can check. I can't believe that we should
be the only one, where this thing didn't work.

Kind regards
Tapio


 > <!-- ========================================================= -->
 >  <!-- org.ofbiz.common.status -->
 >  <!-- ========================================================= -->
 >
 >    <entity entity-name="StatusItem"
 >            package-name="org.ofbiz.common.status"
 >            title="Status Entity"
 >            default-resource-name="CommonEntityLabels"
 >         enable-lock="false"
 >         no-auto-stamp="false"
 >         never-cache="false"
 >         auto-clear-cache="true">
 >      <field name="statusId" type="id-ne"></field>
 >      <field name="statusTypeId" type="id-ne"></field>
 >      <field name="statusCode" type="short-varchar"></field>
 >      <field name="sequenceId" type="id"></field>
 >      <field name="description" type="description"></field>
 >      <prim-key field="statusId"/>
 >      <relation type="one" fk-name="STATUS_TO_TYPE" >rel-entity-
 > name="StatusType">
 >        <key-map field-name="statusTypeId"/>
 >      </relation>
 >    </entity>
 >


David E. Jones schrieb:

>
> You shouldn't have the "_fr" in the default-resource-name.
>
> -David
>
>
> On Aug 16, 2005, at 8:51 AM, Tapio Reisinger wrote:
>
>> this part was missing. sorry...
>>
>>
>>>
>>> This is the code which we add to the entitymodel:
>>>
>>>
>>> <!-- ========================================================= -->
>>>  <!-- org.ofbiz.common.status -->
>>>  <!-- ========================================================= -->
>>>
>>>    <entity entity-name="StatusItem"
>>>            package-name="org.ofbiz.common.status"
>>>            title="Status Entity"
>>>            default-resource-name="CommonEntityLabels_fr"
>>>         enable-lock="false"
>>>         no-auto-stamp="false"
>>>         never-cache="false"
>>>         auto-clear-cache="true">
>>>      <field name="statusId" type="id-ne"></field>
>>>      <field name="statusTypeId" type="id-ne"></field>
>>>      <field name="statusCode" type="short-varchar"></field>
>>>      <field name="sequenceId" type="id"></field>
>>>      <field name="description" type="description"></field>
>>>      <prim-key field="statusId"/>
>>>      <relation type="one" fk-name="STATUS_TO_TYPE" >rel-entity-
>>> name="StatusType">
>>>        <key-map field-name="statusTypeId"/>
>>>      </relation>
>>>    </entity>
>>>
>>
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
>
>
> ------------------------------------------------------------------------
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: AW: [OFBiz] Dev - i18n for entity Engine Values - I don't give up

David E. Jones

If it's not working, go back to the basics. Look for typos or missing  
artifacts and such.

-David


On Aug 17, 2005, at 11:45 PM, Tapio Reisinger wrote:

> David,
>
> I have no solution so far.
>
> As I wrote, it didn't work without the "_fr" as well (see code  
> below). I know there is workaround, changing the values directly in  
> the database itself.
>
> Is there something else that I can check. I can't believe that we  
> should be the only one, where this thing didn't work.
>
> Kind regards
> Tapio
>
>
> > <!-- ========================================================= -->
> >  <!-- org.ofbiz.common.status -->
> >  <!-- ========================================================= -->
> >
> >    <entity entity-name="StatusItem"
> >            package-name="org.ofbiz.common.status"
> >            title="Status Entity"
> >            default-resource-name="CommonEntityLabels"
> >         enable-lock="false"
> >         no-auto-stamp="false"
> >         never-cache="false"
> >         auto-clear-cache="true">
> >      <field name="statusId" type="id-ne"></field>
> >      <field name="statusTypeId" type="id-ne"></field>
> >      <field name="statusCode" type="short-varchar"></field>
> >      <field name="sequenceId" type="id"></field>
> >      <field name="description" type="description"></field>
> >      <prim-key field="statusId"/>
> >      <relation type="one" fk-name="STATUS_TO_TYPE" >rel-entity-
> > name="StatusType">
> >        <key-map field-name="statusTypeId"/>
> >      </relation>
> >    </entity>
> >
>
>
> David E. Jones schrieb:
>
>> You shouldn't have the "_fr" in the default-resource-name.
>> -David
>> On Aug 16, 2005, at 8:51 AM, Tapio Reisinger wrote:
>>
>>> this part was missing. sorry...
>>>
>>>
>>>
>>>>
>>>> This is the code which we add to the entitymodel:
>>>>
>>>>
>>>> <!-- ========================================================= -->
>>>>  <!-- org.ofbiz.common.status -->
>>>>  <!-- ========================================================= -->
>>>>
>>>>    <entity entity-name="StatusItem"
>>>>            package-name="org.ofbiz.common.status"
>>>>            title="Status Entity"
>>>>            default-resource-name="CommonEntityLabels_fr"
>>>>         enable-lock="false"
>>>>         no-auto-stamp="false"
>>>>         never-cache="false"
>>>>         auto-clear-cache="true">
>>>>      <field name="statusId" type="id-ne"></field>
>>>>      <field name="statusTypeId" type="id-ne"></field>
>>>>      <field name="statusCode" type="short-varchar"></field>
>>>>      <field name="sequenceId" type="id"></field>
>>>>      <field name="description" type="description"></field>
>>>>      <prim-key field="statusId"/>
>>>>      <relation type="one" fk-name="STATUS_TO_TYPE" >rel-entity-  
>>>> name="StatusType">
>>>>        <key-map field-name="statusTypeId"/>
>>>>      </relation>
>>>>    </entity>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/dev
>>>
>>>
>> ---------------------------------------------------------------------
>> ---
>>  _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: AW: [OFBiz] Dev - i18n for entity Engine Values - I don't give up

Jacques Le Roux
Administrator
In reply to this post by Tapio Reisinger
Tapio,

I'm sorry have no time to look further.
But I can assure you that it's work fine. I use it without any problem at
all. There must be something wrong somewhere. Strange that only first line
is in french !

You may take a look at http://jira.undersunconsulting.com/browse/OFBIZ-356

You may also check your CommonEntityLabels_fr.properties files against svn ,
and send an ftl and/or xml file where you use StatusItem  (ie
...${statusItem.get("description",locale) ...) ?

Jacques

----- Original Message -----
From: "Tapio Reisinger" <[hidden email]>
To: "OFBiz Project Development Discussion" <[hidden email]>
Sent: Thursday, August 18, 2005 7:45 AM
Subject: Re: AW: [OFBiz] Dev - i18n for entity Engine Values - I don't give
up


> David,
>
> I have no solution so far.
>
> As I wrote, it didn't work without the "_fr" as well (see code below). I
> know there is workaround, changing the values directly in the database
> itself.
>
> Is there something else that I can check. I can't believe that we should
> be the only one, where this thing didn't work.
>
> Kind regards
> Tapio
>
>
>  > <!-- ========================================================= -->
>  >  <!-- org.ofbiz.common.status -->
>  >  <!-- ========================================================= -->
>  >
>  >    <entity entity-name="StatusItem"
>  >            package-name="org.ofbiz.common.status"
>  >            title="Status Entity"
>  >            default-resource-name="CommonEntityLabels"
>  >         enable-lock="false"
>  >         no-auto-stamp="false"
>  >         never-cache="false"
>  >         auto-clear-cache="true">
>  >      <field name="statusId" type="id-ne"></field>
>  >      <field name="statusTypeId" type="id-ne"></field>
>  >      <field name="statusCode" type="short-varchar"></field>
>  >      <field name="sequenceId" type="id"></field>
>  >      <field name="description" type="description"></field>
>  >      <prim-key field="statusId"/>
>  >      <relation type="one" fk-name="STATUS_TO_TYPE" >rel-entity-
>  > name="StatusType">
>  >        <key-map field-name="statusTypeId"/>
>  >      </relation>
>  >    </entity>
>  >
>
>
> David E. Jones schrieb:
> >
> > You shouldn't have the "_fr" in the default-resource-name.
> >
> > -David
> >
> >
> > On Aug 16, 2005, at 8:51 AM, Tapio Reisinger wrote:
> >
> >> this part was missing. sorry...
> >>
> >>
> >>>
> >>> This is the code which we add to the entitymodel:
> >>>
> >>>
> >>> <!-- ========================================================= -->
> >>>  <!-- org.ofbiz.common.status -->
> >>>  <!-- ========================================================= -->
> >>>
> >>>    <entity entity-name="StatusItem"
> >>>            package-name="org.ofbiz.common.status"
> >>>            title="Status Entity"
> >>>            default-resource-name="CommonEntityLabels_fr"
> >>>         enable-lock="false"
> >>>         no-auto-stamp="false"
> >>>         never-cache="false"
> >>>         auto-clear-cache="true">
> >>>      <field name="statusId" type="id-ne"></field>
> >>>      <field name="statusTypeId" type="id-ne"></field>
> >>>      <field name="statusCode" type="short-varchar"></field>
> >>>      <field name="sequenceId" type="id"></field>
> >>>      <field name="description" type="description"></field>
> >>>      <prim-key field="statusId"/>
> >>>      <relation type="one" fk-name="STATUS_TO_TYPE" >rel-entity-
> >>> name="StatusType">
> >>>        <key-map field-name="statusTypeId"/>
> >>>      </relation>
> >>>    </entity>
> >>>
> >>
> >> _______________________________________________
> >> Dev mailing list
> >> [hidden email]
> >> http://lists.ofbiz.org/mailman/listinfo/dev
> >>
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > Dev mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/dev
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>
>


 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev