Skip to content

Commit

Permalink
I18N: mixed improvements like http -> https
Browse files Browse the repository at this point in the history
  • Loading branch information
fellen authored and jralls committed Mar 3, 2023
1 parent 8e259c8 commit 81db38f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions gnucash/gnome/dialog-doclink.c
Expand Up @@ -238,11 +238,11 @@ setup_location_dialog (GtkBuilder *builder, GtkWidget *button_loc, const gchar *
// update label and set entry text if required
if (uri)
{
gtk_label_set_text (location_label, _("Amend URL:"));
gtk_label_set_text (location_label, _("Amend the URL"));
gtk_entry_set_text (entry, uri);
}
else
gtk_label_set_text (location_label, _("Enter URL like http://www.gnucash.org:"));
gtk_label_set_text (location_label, _("Enter an URL like \"https://www.gnucash.org\""));
}

static void
Expand All @@ -256,7 +256,7 @@ setup_file_dialog (GtkBuilder *builder, const gchar *path_head, const gchar *uri
GtkWidget *existing_hbox = GTK_WIDGET(gtk_builder_get_object (builder, "existing_hbox"));
GtkWidget *image = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_SMALL_TOOLBAR);
gchar *use_uri = gnc_doclink_get_use_uri (path_head, uri, scheme);
gchar *uri_label = g_strdup_printf ("%s '%s'", _("Existing Document Link is"), display_uri);
gchar *uri_label = g_strdup_printf ("%s \"%s\"", _("Existing Document Link is"), display_uri);
GtkWidget *label = gtk_label_new (uri_label);

if (g_file_test (display_uri, G_FILE_TEST_EXISTS))
Expand Down
2 changes: 1 addition & 1 deletion gnucash/gtkbuilder/dialog-doclink.glade
Expand Up @@ -406,7 +406,7 @@
<property name="halign">start</property>
<property name="margin-top">3</property>
<property name="margin-bottom">3</property>
<property name="label" translatable="yes">Enter URL like http://www.gnucash.org</property>
<property name="label" translatable="yes">Enter an URL like "https://www.gnucash.org"</property>
</object>
<packing>
<property name="expand">False</property>
Expand Down
8 changes: 6 additions & 2 deletions gnucash/import-export/qif-imp/qif-parse.scm
Expand Up @@ -169,7 +169,9 @@
(list "oth s" GNC-ASSET-TYPE GNC-BANK-TYPE GNC-CASH-TYPE)
(list "mutual" GNC-BANK-TYPE)))
(or (assoc-ref string-map-alist (string-downcase! (string-trim-both read-value)))
(let ((msg (format #f (G_ "Unrecognized account type '~s'. Defaulting to Bank.")
;; Translators: Mapping the QIF account type to a GnuCash account type.
;; see https://en.wikipedia.org/wiki/Quicken_Interchange_Format#Detail_items
(let ((msg (format #f (G_ "The account type ~s is unknown, using 'bank' instead.")
read-value)))
(errorproc errortype msg)
(list GNC-BANK-TYPE))))
Expand Down Expand Up @@ -232,6 +234,7 @@
(and read-value
(let ((sym (string->symbol (string-downcase (string-trim-both read-value)))))
(or (any (lambda (lst) (and (memq sym lst) (car lst))) action-map)
;; Translators: This is an error message about actions like buy, sell …
(let ((msg (format #f (G_ "Unrecognized action '~a'.") read-value)))
(errorproc errortype msg))))))

Expand All @@ -251,7 +254,8 @@
(not (string-null? read-value))
(let* ((secondchar (string-ref read-value 0)))
(or (any (lambda (m) (and (memq secondchar (cdr m)) (car m))) maplist)
(let ((msg (format #f (G_ "Unrecognized status '~a'. Defaulting to uncleared.")
;; Translators: Error message about reconciliation status, see msgctxt "Reconciled flag …"
(let ((msg (format #f (G_ "The unknown reconciliation status '~a' will be replaced by 'uncleared'.")
read-value)))
(errorproc errortype msg))))))

Expand Down
2 changes: 1 addition & 1 deletion gnucash/report/reports/example/welcome-to-gnucash.scm
Expand Up @@ -38,7 +38,7 @@
doc
(gnc:make-html-text
(gnc:html-markup-h3
(format #f (G_ "Welcome to GnuCash ~a !")
(format #f (G_ "Welcome to GnuCash ~a!")
gnc:version))
(gnc:html-markup-p
(format #f (G_ "GnuCash ~a has lots of nice features. Here are a few.")
Expand Down

0 comments on commit 81db38f

Please sign in to comment.