Skip to content

Commit

Permalink
fix: icons now have platform look
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzheremi2 committed Jan 7, 2025
1 parent ef740ae commit fc9f839
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 29 deletions.
5 changes: 2 additions & 3 deletions data/icons/icons/symbolic/app-menu-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions data/icons/icons/symbolic/edit-metadata-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions data/icons/icons/symbolic/home-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions data/icons/icons/symbolic/open-source-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions data/icons/icons/symbolic/pin-dir-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions data/icons/icons/symbolic/replay-line-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions data/icons/icons/symbolic/search-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions data/icons/icons/symbolic/sort-alphabetically-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions data/icons/icons/symbolic/toggle-sidebar-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d06939981f9f6a67cb9bc5b0354c79b0a41db7ea566a7d2be5bb666303c21525
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,19 @@ def validate_for_type(self) -> None:
f"Cannot convert translated string to {expected_type.full_name}"
)

@validate("context")
def context_double_quoted(self):
if self.translate_context is None:
return

if not str(self.group.tokens["context"]).startswith('"'):
raise CompileWarning("gettext may not recognize single-quoted strings")

@validate("string")
def string_double_quoted(self):
if not str(self.group.tokens["string"]).startswith('"'):
raise CompileWarning("gettext may not recognize single-quoted strings")

@docs()
def ref_docs(self):
return get_docs_section("Syntax Translated")
Expand Down
2 changes: 2 additions & 0 deletions subprojects/blueprint-compiler/docs/translations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ If you're using Meson's `i18n module <https://mesonbuild.com/i18n-module.html#i1

i18n.gettext('package name', preset: 'glib')

You must use double quotes for the translated strings in order for gettext to recognize them. Newer versions of blueprint will warn you if you use single quotes.

Contexts
--------

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using Gtk 4.0;

Label {
label: _('Hello, World!');
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4,12,15,gettext may not recognize single-quoted strings

0 comments on commit fc9f839

Please sign in to comment.