doc: Fix mismatch of gallery vs. my_application in the translation docs

bindtextdomain was called with "my_application", but the rest talked about gallery. I switched all to the former, but it could also be the latter.
This commit is contained in:
Simon Hausmann 2024-04-12 13:03:55 +02:00
parent 5c6e3bab04
commit 89eaac9d02

View file

@ -172,8 +172,8 @@ To do so, add this in your CMakeLists.txt
```cmake ```cmake
find_package(Intl) find_package(Intl)
if(Intl_FOUND) if(Intl_FOUND)
target_compile_definitions(gallery PRIVATE HAVE_GETTEXT SRC_DIR="${CMAKE_CURRENT_SOURCE_DIR}") target_compile_definitions(my_application PRIVATE HAVE_GETTEXT SRC_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(gallery PRIVATE Intl::Intl) target_link_libraries(my_application PRIVATE Intl::Intl)
endif() endif()
``` ```
@ -196,7 +196,7 @@ int main()
``` ```
Suppose you're using the above and the user's locale is set to `fr`, Suppose you're using the above and the user's locale is set to `fr`,
Slint will look for `gallery.mo` in the `lang/fr/LC_MESSAGES/gallery.mo`. Slint will look for `my_application.mo` in the `lang/fr/LC_MESSAGES/` directory.
## Previewing Translations with `slint-viewer` ## Previewing Translations with `slint-viewer`