Code Monkey home page Code Monkey logo

Comments (11)

NeatNit avatar NeatNit commented on July 23, 2024 2

To clarify to anyone who's still unsure:

Right now the place is open/closed

It closes/opens in XX or at XX

(arguably "opens" is somehow short for "will open", i.e. future tense. same for "closes" = "will close")

I agree with OP but if the issue is only with the editor, I don't know how crucial this is. If someone wants to make a pull request, I imagine it will be accepted. (this is just my gut feeling)

from organicmaps.

RedAuburn avatar RedAuburn commented on July 23, 2024 1

Both types are fine in EN 馃憤

I guess technically opens/closes is more correct, but i wouldn't bother with it really. The only difference is that opens/closes is framed more as a question, whereas open/closed is more of a statement.

from organicmaps.

matheusgomesms avatar matheusgomesms commented on July 23, 2024 1

Opens/Closes everywhere?

I don't think so. In the Place Page, that selected item is OPEN or CLOSED (just like signs in the PoIs entrance), but to edit it in opening hours editor, that PoI OPENS at xx hour, and CLOSES at yy hour.

from organicmaps.

NeatNit avatar NeatNit commented on July 23, 2024 1

Looking at the current strings.txt file, these are the current definitions for closed (showing only a few languages):

[editor_time_close]
    tags = android,ios
    en = Closed
    de = Geschlossen
    es = Cerrado
    he = 住讙讜专
    pt = Fecha

  [editor_time_add_closed]
    tags = android,ios
    en = Add Non-Business Hours
    de = Schlie脽zeiten hinzuf眉gen
    es = A帽adir horas de cierre
    he = 讛讜住祝 砖注讜转 住讙讬专讛
    pt = Inserir horas de encerrrado
    pt-BR = Inserir horas sem funcionamento

  [editor_hours_closed]
    tags = android,ios
    en = Non-Business Hours
    de = Schlie脽zeiten
    es = Horas de cierre
    he = 砖注讜转 住讙讬专讛
    pt = Horas sem funcionamento

  [closed_now]
    comment = Place Page opening hours text
    tags = ios
    en = Closed now
    de = Jetzt geschlossen
    es = Cerrado ahora
    he = 住讙讜专 讻注转
    pt = Fechado agora
    pt-BR = Fechado agora

  [day_off_today]
    tags = android,ios
    en = Closed today
    de = Heute geschlossen
    es = Cerrado hoy
    he = 住讙讜专 讛讬讜诐
    pt = Fechado hoje
    pt-BR = Fechado hoje

  [day_off]
    tags = android,ios
    en = Closed
    de = Geschlossen
    es = Cerrado
    he = 住讙讜专
    pt = Fechado
    pt-BR = Fechado

  [closed]
    tags = android,ios
    en = Closed
    de = Geschlossen
    es = Cerrado
    he = 住讙讜专
    pt = Fechado
    pt-BR = Fechado

I can't find out for sure which one is used where (I'm not familiar with the code and it would take too much effort to figure things out), but if the string names are to be believed, [editor_time_close] is the one that needs to be changed (together with [editor_time_open] presumably). So maybe this can be fixed simply by changing those two strings, but without compiling and making sure the change is correct I can't say with any confidence, and I'm not equipped to compile anything right now.

from organicmaps.

biodranik avatar biodranik commented on July 23, 2024 1

Thanks for the summary. There is some discrepancy between platforms, that should be synced.

  1. iOS has opening times displayed on the place page. Android doesn't have it. Is there already an issue for that?
  2. Looks like the search results are filled not from the C++ code, but on each platform, right? It would be great to do it in one place someday (if it's possible, of course, e.g. no dependency on some date/time formatting). Maybe create an issue for it?
  3. So we have 3 different places: editor, PP and search results.
  4. Editor should display "Opens" and "Closes" ("袨褌泻褉褘胁邪械褌褋褟" and "袟邪泻褉褘胁邪械褌褋褟"), or "Opens at"/"Closes at".
  5. PP and search should show similar translations ("Open"/"Closed" "袨褌泻褉褘褌芯"/"袟邪泻褉褘褌芯"), and also "Closes at ..." and "Closes in ..." depending on time, as @dvdmrtnz implemented it on iOS.

What I'm missing?

from organicmaps.

biodranik avatar biodranik commented on July 23, 2024

Trying to understand the issue. Shouldn't it be Opens/Closes everywhere?

from organicmaps.

matheusgomesms avatar matheusgomesms commented on July 23, 2024

Perhaps in English doesn't make a lot of difference, but for me it makes quite a lot in Portuguese or Spanish (do you feel the same @patepelo?) If this is very nit-picking of my side, let's close this issue!

from organicmaps.

matheusgomesms avatar matheusgomesms commented on July 23, 2024

Yep, it is not crucial at all.

Just to give a perspective, I came with this issue because I updated a PT string and realized this. So I actually I would like to know if this is interesting to fix. I could try to (someone can give me some pointers), or I can revert my Portuguese edit.

from organicmaps.

patepelo avatar patepelo commented on July 23, 2024

Perhaps in English doesn't make a lot of difference, but for me it makes quite a lot in Portuguese or Spanish (do you feel the same @patepelo?) If this is very nit-picking of my side, let's close this issue!

I have my OM set up normally in English and hadn't noticed since the difference is very subtle, and it's true that when you translate literally maybe in the destination language the difference is more notable.

In Spanish (open = abierto; close= cerrado ; while for opens = abre; closes = cierra is technically more correct. I guess you could say that changing it to "opens" and "closes" is a small improvement.

We could either have the change in the translation (for ES and PT) or directly at the core. I would take @RedAuburn advice as a native English speaker and if EN won't change then you are more than welcomed to improve the translations, and I'd help with ES.

from organicmaps.

biodranik avatar biodranik commented on July 23, 2024

Any help is welcome!

  1. Find which strings are used where, on iOS and Android.
  2. Check if strings are already split and only translations should be changed.
  3. If the same string is shared, then split it and provide better matching translations.

from organicmaps.

matheusgomesms avatar matheusgomesms commented on July 23, 2024

Looking at the current strings.txt file, these are the current definitions for closed (showing only a few languages):

I can't find out for sure which one is used where (I'm not familiar with the code and it would take too much effort to figure things out), but if the string names are to be believed, [editor_time_close] is the one that needs to be changed (together with [editor_time_open] presumably). So maybe this can be fixed simply by changing those two strings, but without compiling and making sure the change is correct I can't say with any confidence, and I'm not equipped to compile anything right now.

Thanks for the investigation!

I made some investigation as well. First, it seems the problem is only in iOS, since Android uses in the Editor [editor_time_from] and [editor_time_to], where in iOS both Place Page and Editor are obtaining the strings from [editor_time_open] and [editor_time_close].

I changed Portuguese in #7425 and that's why it got "wrong".

Some solutions:

1 - We could reuse [editor_time_from] and [editor_time_to] into iOS.

2 - We could create a new string adapting (removing %@) the existing [opens_at] and [closes_at] (so no need to translate something new):

[opens_at]
    tags = ios
    en = Opens at %@
    af = Open om %@
    ar = 賷賮鬲丨 賮賷 %@
    az = A莽谋l谋r %@
    be = 袗写泻褉褘胁邪械褑褑邪 褳 %@
    ca = Obre a les %@
    de = 脰ffnet um %@
    es = Abre a las %@
    
[closes_at]
    tags = ios
    en = Closes at %@
    af = Sluit om %@
    ar = 賷睾賱賯 賮賷 %@
    az = Ba臒lan谋r %@
    be = 袟邪泻褉褘胁邪械褑褑邪 褳 %@
    ca = Tanca a les %@
    de = Schlie脽t um %@
    es = Cierra a las %@

3 - Another solution is, in Place Page, use the string [closed] and create a new one called [open], and fix [editor_time_open] and [editor_time_close] to be used only in Editor (hence its name, I suppose).

@biodranik what can be done here? Any ideas?

from organicmaps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google 鉂わ笍 Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.