sailfishos / sailfish-components-webview

Mozilla Public License 2.0
13 stars 23 forks source link

[sailfish-webview] Add translation generation script. Fixes JB#53252 #92

Closed Tomin1 closed 3 years ago

Tomin1 commented 3 years ago

Add translation generation script for property files. This is intended to be used when engine is updated and the result can be then committed to a repository. The script outputs a C++ source file.

Tomin1 commented 3 years ago

This is intended to be used when engine is updated and the result can be then committed to this repository.

This repository or a repository (some repository)?

rainemak commented 3 years ago

Lines like: neverForSiteButtonText = Ne&ver for This Site

Will result something like:

//% "Ne&ver for This Site" const auto passwordmgr_never_for_site_button_text = qtTrId("sailfish_components_webview_popups-la-passwordmgr_never_for_site_button_text");

Those kind of cases look like keyboard shortcuts => as we don't have support either => let's just drop those.

Nonetheless, already quite nice.

Tomin1 commented 3 years ago

Added line numbers and fixed that error message.