From 229aa3e3ece7d49b508abb0a0bbcc17b87c0be34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Fri, 6 Oct 2023 17:02:54 +0300 Subject: [PATCH 1/5] data: Remove redundant translation Strings should be translated via the po files. --- data/com.github.fabiocolacio.marker.appdata.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/data/com.github.fabiocolacio.marker.appdata.xml b/data/com.github.fabiocolacio.marker.appdata.xml index 28874374d..9173782fb 100644 --- a/data/com.github.fabiocolacio.marker.appdata.xml +++ b/data/com.github.fabiocolacio.marker.appdata.xml @@ -5,9 +5,7 @@ FSFAP GPL-3.0 Marker - 마커 Powerful markdown editor for the GNOME desktop. - 그놈 데스크탑을 위한 강력한 마크다운 편집기입니다.

Features:

From 7fa649e83b3781d8b560cc9f9aac3699ba8068f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Fri, 6 Oct 2023 17:03:57 +0300 Subject: [PATCH 2/5] data: Mark release descriptions as untranslatable GNOME automatically excludes release descriptions on Damned Lies (GNOME Translation Platform). It's a good practice to follow the GNOME way. This can streamline the translation process, allowing translators to focus their efforts on more critical and user-facing aspects of the application. --- data/com.github.fabiocolacio.marker.appdata.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/data/com.github.fabiocolacio.marker.appdata.xml b/data/com.github.fabiocolacio.marker.appdata.xml index 9173782fb..61f9fc48a 100644 --- a/data/com.github.fabiocolacio.marker.appdata.xml +++ b/data/com.github.fabiocolacio.marker.appdata.xml @@ -59,7 +59,7 @@ - +
  • Fixed a bug where equations weren't being rendered properly.
  • Improved localizations.
  • @@ -67,7 +67,7 @@ - +
    • Preview stick to the editing text better.
    • Fixed crash on file opening.
    • @@ -76,7 +76,7 @@ - +
      • Added ability to export documents from the cli.
      • Added vim-like shortcuts (h,j,k,l,g,G) to the previewer.
      • @@ -88,7 +88,7 @@ - +
        • Added right-to-left language support
        • Added support for beamer classes for making presentations
        • @@ -99,7 +99,7 @@ - +

          Initial Flathub release

          From 1a4cf669a367536492c24e4a26c898692751d332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Fri, 6 Oct 2023 17:57:35 +0300 Subject: [PATCH 3/5] po: mark appdata translatable --- po/POTFILES | 3 +++ 1 file changed, 3 insertions(+) diff --git a/po/POTFILES b/po/POTFILES index 61d7508b8..caea34902 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -1,3 +1,6 @@ +data/com.github.fabiocolacio.marker.desktop +data/com.github.fabiocolacio.marker.appdata.xml +data/com.github.fabiocolacio.marker.gschema.xml src/resources/ui/marker-appmenu.ui src/resources/ui/marker-prefs-window.ui src/resources/ui/marker-shortcuts-window.ui From 0021cce9d41bdaa47f4602d3ea9c595473e02ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Fri, 6 Oct 2023 17:58:42 +0300 Subject: [PATCH 4/5] app: mark several strings translatable --- po/POTFILES | 1 + src/marker-exporter.c | 6 +++--- src/marker-window.c | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/po/POTFILES b/po/POTFILES index caea34902..f14c6deb0 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -10,4 +10,5 @@ src/resources/ui/marker-window-main-view.ui src/resources/ui/marker-headerbar.ui src/marker.c src/marker-editor.c +src/marker-exporter.c src/marker-window.c diff --git a/src/marker-exporter.c b/src/marker-exporter.c index 8b881e2cb..ec43ef3ad 100644 --- a/src/marker-exporter.c +++ b/src/marker-exporter.c @@ -103,11 +103,11 @@ marker_exporter_export_pandoc(const char* markdown, void marker_exporter_show_export_dialog(MarkerWindow* window) { - GtkDialog *dialog = GTK_DIALOG(gtk_file_chooser_dialog_new ("Export", + GtkDialog *dialog = GTK_DIALOG(gtk_file_chooser_dialog_new (_("Export"), GTK_WINDOW(window), GTK_FILE_CHOOSER_ACTION_SAVE, - "Cancel", GTK_RESPONSE_CANCEL, - "Export", GTK_RESPONSE_ACCEPT, + _("Cancel"), GTK_RESPONSE_CANCEL, + _("Export"), GTK_RESPONSE_ACCEPT, NULL)); GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog); diff --git a/src/marker-window.c b/src/marker-window.c index 9fbd175da..0ffd0ce31 100644 --- a/src/marker-window.c +++ b/src/marker-window.c @@ -109,11 +109,11 @@ show_unsaved_documents_warning (MarkerWindow *window) GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, - "" + _("" "Discard changes to the document '%s'?" "\n\n" "The document has unsaved changes " - "that will be lost if it is closed now.", + "that will be lost if it is closed now."), filename); } else @@ -122,11 +122,11 @@ show_unsaved_documents_warning (MarkerWindow *window) GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, - "" + _("" "Discard changes to the document?" "\n\n" "The document has unsaved changes " - "that will be lost if it is closed now."); + "that will be lost if it is closed now.")); } gtk_dialog_add_buttons(GTK_DIALOG (dialog), @@ -1055,10 +1055,10 @@ marker_window_open_file (MarkerWindow *window) { g_assert (MARKER_IS_WINDOW (window)); - g_autoptr (GtkFileChooserNative) dialog = gtk_file_chooser_native_new ("Open", + g_autoptr (GtkFileChooserNative) dialog = gtk_file_chooser_native_new (_("Open"), GTK_WINDOW (window), GTK_FILE_CHOOSER_ACTION_OPEN, - "_Open", "_Cancel"); + _("_Open"), _("_Cancel")); gint response = gtk_native_dialog_run (GTK_NATIVE_DIALOG (dialog)); if (response == GTK_RESPONSE_ACCEPT) @@ -1072,10 +1072,10 @@ void marker_window_open_file_in_new_window (MarkerWindow *window) { g_assert (MARKER_IS_WINDOW (window)); - g_autoptr (GtkFileChooserNative) dialog = gtk_file_chooser_native_new ("Open", + g_autoptr (GtkFileChooserNative) dialog = gtk_file_chooser_native_new (_("Open"), GTK_WINDOW (window), GTK_FILE_CHOOSER_ACTION_OPEN, - "_Open", "_Cancel"); + _("_Open"), _("_Cancel")); gint response = gtk_native_dialog_run (GTK_NATIVE_DIALOG (dialog)); @@ -1090,10 +1090,10 @@ void marker_window_save_active_file_as (MarkerWindow *window) { g_assert (MARKER_IS_WINDOW (window)); - g_autoptr (GtkFileChooserNative) dialog = gtk_file_chooser_native_new ("Save As", + g_autoptr (GtkFileChooserNative) dialog = gtk_file_chooser_native_new (_("Save As"), GTK_WINDOW (window), GTK_FILE_CHOOSER_ACTION_SAVE, - "_Save", "_Cancel"); + _("_Save"), _("_Cancel")); gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog), TRUE); From f8066727b2e4124a535d9361a1ac98fd90829060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Fri, 6 Oct 2023 18:00:02 +0300 Subject: [PATCH 5/5] Update POT file --- po/marker.pot | 372 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 365 insertions(+), 7 deletions(-) diff --git a/po/marker.pot b/po/marker.pot index f392cd748..54a933e85 100644 --- a/po/marker.pot +++ b/po/marker.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: marker\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-15 17:13+0100\n" +"POT-Creation-Date: 2023-10-06 17:59+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,6 +17,320 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: data/com.github.fabiocolacio.marker.desktop:3 +#: data/com.github.fabiocolacio.marker.appdata.xml:7 +msgid "Marker" +msgstr "" + +#: data/com.github.fabiocolacio.marker.desktop:11 +msgid "Markdown Editor" +msgstr "" + +#: data/com.github.fabiocolacio.marker.desktop:12 +msgid "A simple markdown editor for GTK+" +msgstr "" + +#: data/com.github.fabiocolacio.marker.desktop:26 +msgid "marker;markdown;editor;web;" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:8 +msgid "Powerful markdown editor for the GNOME desktop." +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:11 +msgid "Features:" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:13 +msgid "View and edit markdown documents" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:14 +msgid "Convert markdown documents to HTML" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:15 +msgid "Tex math rendering" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:16 +msgid "Support for mermaid diagrams" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:17 +msgid "Support for charter plots" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:18 +msgid "Syntax highlighting for code blocks" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:19 +msgid "Integrated sketch editor" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:22 +msgid "PDF" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:23 +msgid "RTF" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:24 +msgid "ODT" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:25 +msgid "DOCx" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:26 +msgid "LaTeX" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:29 +msgid "Custom CSS themes" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:30 +msgid "Custom syntax themes" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:31 +msgid "Figure captioning and numbering" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:39 +msgid "The main view" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:43 +msgid "Some plotting" +msgstr "" + +#: data/com.github.fabiocolacio.marker.appdata.xml:47 +msgid "The sketch editor" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:24 +msgid "Syntax Theme" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:25 +msgid "The syntax theme to use for the editor." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:30 +msgid "Enable Syntax Theme" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:31 +msgid "Whether to use a syntax theme in the editor." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:36 +msgid "Show Line Numbers" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:37 +msgid "Whether to show line numbers in the editor." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:42 +msgid "Show Right Margin" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:43 +msgid "Whether to show a margin on the right side of the editor." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:48 +msgid "The column at which the right margin should be shown" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:49 +msgid "" +"Sets the column where the right margin will appear when 'show-right-margin' " +"is enabled" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:54 +msgid "Wrap Text" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:55 +msgid "Whether to wrap text in the editor." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:60 +msgid "Show Spaces" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:61 +msgid "Whether to show spaces and tabulation in the editor." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:66 +msgid "Highlight Current Line" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:67 +msgid "Whether to highlight the line with the cursor in the editor." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:72 +msgid "Use spaces instead of tabs" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:73 +msgid "Use spaces instead of tabs in the editor." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:78 +msgid "Width of tabulation in characters." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:79 +msgid "Set the width of tabulation in characters in the editor." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:84 +msgid "Auto-indent code" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:85 +msgid "Auto-indent code in the editor." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:90 +msgid "Spell Check" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:91 +msgid "Spell check using gtkspell." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:96 +msgid "Language for spell check" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:97 +msgid "Selected language for spell check." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:104 +msgid "CSS Theme" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:105 +msgid "The css theme to use for the preview." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:110 +msgid "Enable CSS theme in Preview" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:111 +msgid "Use a CSS theme in the live preview" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:116 +msgid "Enable math in Preview" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:117 +msgid "Use js back-end to render math in the live preview." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:122 +msgid "Math Back-end" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:123 +msgid "Select the js math rendering back-end." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:128 +msgid "Enable highlight.js in Preview" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:129 +msgid "Use highlight.js in the live preview." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:134 +msgid "Enable mermaid.js in Preview" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:135 +msgid "Use mermaid.js to show diagram in the live preview." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:140 +msgid "Highlight.js CSS theme." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:141 +msgid "The css theme to use for the synthax highlight." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:145 +msgid "Enable Charter extension in Preview" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:146 +msgid "Enable Charter extension in the live preview." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:150 +msgid "Zoom level of the preview" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:151 +msgid "Zoom level of the preview widget" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:158 +#: src/resources/ui/marker-gear-popover.ui:168 +#: src/resources/ui/marker-gear-popover.ui:234 +msgid "View Mode" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:159 +msgid "Controls how to organize the editor and preview areas on the screen." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:164 +msgid "Enter dark-mode" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:165 +msgid "" +"When this is enabled, the dark variant of the current gtk theme will be used." +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:170 +msgid "Window width" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:175 +msgid "Window height" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:180 +msgid "Window position (x, y)" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:185 +msgid "Editor pane width (in Dual Pane mode)" +msgstr "" + +#: data/com.github.fabiocolacio.marker.gschema.xml:190 +msgid "Whether the sidebar is shown" +msgstr "" + #: src/resources/ui/marker-appmenu.ui:6 #: src/resources/ui/marker-gear-popover.ui:88 msgid "New Window" @@ -24,7 +338,7 @@ msgstr "" #: src/resources/ui/marker-appmenu.ui:12 #: src/resources/ui/marker-prefs-window.ui:46 -#: src/resources/ui/marker-gear-popover.ui:183 +#: src/resources/ui/marker-gear-popover.ui:191 msgid "Preferences" msgstr "" @@ -218,6 +532,11 @@ msgctxt "shortcut window" msgid "Insert link" msgstr "" +#: src/resources/ui/marker-shortcuts-window.ui:95 +msgctxt "shortcut window" +msgid "Draw a sketch" +msgstr "" + #: src/resources/ui/marker-shortcuts-window.ui:102 msgctxt "shortcut window" msgid "Search in the document" @@ -338,11 +657,6 @@ msgstr "" msgid "Print…" msgstr "" -#: src/resources/ui/marker-gear-popover.ui:168 -#: src/resources/ui/marker-gear-popover.ui:234 -msgid "View Mode" -msgstr "" - #: src/resources/ui/marker-gear-popover.ui:215 msgid "About Marker" msgstr "" @@ -370,3 +684,47 @@ msgstr "" #: src/marker-editor.c:248 msgid "Untitled.md" msgstr "" + +#: src/marker-exporter.c:106 src/marker-exporter.c:110 +msgid "Export" +msgstr "" + +#: src/marker-exporter.c:109 +msgid "Cancel" +msgstr "" + +#: src/marker-window.c:112 +#, c-format +msgid "" +"Discard changes to the document '%s'?\n" +"\n" +"The document has unsaved changes that will be lost if it is closed now." +msgstr "" + +#: src/marker-window.c:125 +msgid "" +"Discard changes to the document?\n" +"\n" +"The document has unsaved changes that will be lost if it is closed now." +msgstr "" + +#: src/marker-window.c:1058 src/marker-window.c:1075 +msgid "Open" +msgstr "" + +#: src/marker-window.c:1061 src/marker-window.c:1078 +msgid "_Open" +msgstr "" + +#: src/marker-window.c:1061 src/marker-window.c:1078 src/marker-window.c:1096 +msgid "_Cancel" +msgstr "" + +#: src/marker-window.c:1093 +msgid "Save As" +msgstr "" + +#: src/marker-window.c:1096 +msgid "_Save" +msgstr ""