openmeetings-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Solodovnik <solomax...@gmail.com>
Subject Re: How to set attribute value to a language xml file entry
Date Fri, 05 Apr 2013 01:36:21 GMT
I'm totally confused with this question,

1) since you have entry in your english.xml file (and have this language
file imported via language admin) there is no need to create any attributes.

2) Why do you need attribute?

3) your attribute declaration is confusing: by setting  *type="number"* you
telling openlaszlo the value will be number, but in the same line you
declaring: value="I want to put it here".

Please take a look at the code, there is special label which takes string
id, you just need to use it.



On Thu, Apr 4, 2013 at 9:50 PM, Andun Sameera <andunslg@gmail.com> wrote:

> Hi All,
>
> I have a language xml entry like this,
>
>     <string id="1541" name="content_is_saving">
>         <value>Content is Saving, Please wait.</value>
>     </string>
>
> I want to save this value to a attribute like this,
>
>      <attribute name="errorid" value="I want to put it here" type="number"
> />
>
> What will be the way?
>
> Also I have added the above new entry to master language (English) xml
> file. Running the test method in
> singlewebapp/src/org/apache/openmeetings/test/labels/FillLabels.java
> will populate that entry to other languages. Am I correct?
>
> Thanks!
>
> --
> Regards
> Andun S.L. Gunawardana
> Undergraduate
> Department of Computer Science And Engineering
> University of Moratuwa
> Sri Lanka
>
> Blog - http://www.insightforfuture.blogspot.com/
> LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
> Twitter -http://twitter.com/AndunSLG
>



-- 
WBR
Maxim aka solomax

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message