Locale/OpenCatalog()
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 391 from 2003/2/25
    From: Berlin
    Hi,

    I tried to localize my yWeather sbar, but I encountered a problem, the catalog is only read if it is in PROGDIR:catalogs/, but it should try to load from LOCALE:catalogs/ if there is no PROGDIR:catalogs/, right?
    That what old locale autodocs says.

    Is it a bug or am I doing something wrong?
  • »03.03.14 - 20:21
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 518 from 2003/2/25
    From: France
    Hi,

    What's your OpenCatalog argument ?

    Does Snoopium says something ?

    ++
    Quelque soit le chemin que tu prendras dans la vie, sache que tu auras des ampoules aux pieds.
    -------
    I need to practice my Kung Fu.
  • »03.03.14 - 20:32
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 391 from 2003/2/25
    From: Berlin
    Quote:

    What's your OpenCatalog argument ?


    Code:
       cat_yWeather:=OpenCatalogA(loc,'yWeather.catalog',
    [OC_BUILTINLANGUAGE, 'english',
    tag, tagarg,
    OC_VERSION, 0,
    TAG_DONE,0])

    I used current flexcat v2.13 with E32e.sd file.

    Snoopium does 3 times this:
    loctest Open PROGDIR:Catalogs/deutsch/yWeather.catalog Read Fail
  • »03.03.14 - 20:56
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Quote:

    igracki wrote:
    Hi,

    I tried to localize my yWeather sbar, but I encountered a problem, the catalog is only read if it is in PROGDIR:catalogs/, but it should try to load from LOCALE:catalogs/ if there is no PROGDIR:catalogs/, right?
    That what old locale autodocs says.



    It should. Maybe you are using wrong version number? Version number must be an exact match unless versio 0 is requested.

    Locale.library is trying to find catalog in following order:

    1) PROGDIR:Catalogs
    2) MOSSYS:Locale/Catalogs
    3) LOCALE:Catalogs
    1 + 1 = 3 with very large values of 1
  • »03.03.14 - 20:57
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Oh... What locale.library version are you using?
    1 + 1 = 3 with very large values of 1
  • »03.03.14 - 21:04
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 391 from 2003/2/25
    From: Berlin
    v51.29
  • »03.03.14 - 21:07
    Profile Visit Website
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Quote:

    igracki wrote:
    v51.29



    It is buggy :) get one from 3.5 ISO or wait for next nightly :)
    1 + 1 = 3 with very large values of 1
  • »03.03.14 - 21:09
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 391 from 2003/2/25
    From: Berlin
    ok, thanks!
  • »03.03.14 - 21:11
    Profile Visit Website