Skip to content

Commit

Permalink
Fix lite code
Browse files Browse the repository at this point in the history
  • Loading branch information
torikulhabib committed Nov 27, 2018
1 parent cc0ff83 commit b485be9
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 56 deletions.
13 changes: 13 additions & 0 deletions data/com.github.torikulhabib.mindi.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@
<binary>com.github.torikulhabib.mindi</binary>
</provides>
​<releases>
<release version="1.4.1" date="2018-11-27">
<description>
<p>Fix and add feature</p>
<ul>
<li>Info Location converted.</li>
<li>Fix close warning.</li>
<li>Fix stop warning.</li>
<li>Add silent notify.</li>
<li>Find location converted.</li>
<li>Ask converter location.</li>
</ul>
</description>
</release>
<release version="1.2.5" date="2018-11-25">
<description>
<p>Fix and add feature</p>
Expand Down
74 changes: 53 additions & 21 deletions po/com.github.torikulhabib.mindi.pot
Original file line number Diff line number Diff line change
Expand Up @@ -63,88 +63,120 @@ msgstr ""
msgid "Yes"
msgstr ""

#: src/Window.vala:51
#: src/Window.vala:78
msgid "Change"
msgstr ""

#: src/Window.vala:54 src/Window.vala:223 src/Window.vala:226
#: src/Window.vala:85 src/Window.vala:334 src/Window.vala:390 src/Window.vala:392 src/Window.vala:732
msgid "Open"
msgstr ""

#: src/Window.vala:87
#: src/Window.vala:115
msgid "Light background"
msgstr ""

#: src/Window.vala:88
#: src/Window.vala:116
msgid "Dark background"
msgstr ""

#: src/Window.vala:189
#: src/Window.vala:133 src/Window.vala:423 src/Window.vala:424 src/Window.vala:610
msgid "Location"
msgstr ""

#: src/Window.vala:150
msgid "Notify"
msgstr ""

#: src/Window.vala:157
msgid "Open custom location"
msgstr ""

#: src/Window.vala:169
msgid "Close"
msgstr ""

#: src/Window.vala:176
msgid "Find location"
msgstr ""

#: src/Window.vala:337
msgid "Folder"
msgstr ""

#: src/Window.vala:357
msgid "Video"
msgstr ""

#: src/Window.vala:205
#: src/Window.vala:373
msgid "Select Video"
msgstr ""

#: src/Window.vala:220
#: src/Window.vala:384
msgid "Choose a video file…"
msgstr ""

#: src/Window.vala:228 src/Window.vala:345
#: src/Window.vala:521 src/Window.vala:345
msgid "Cancel"
msgstr ""

#: src/Window.vala:232
#: src/Window.vala:395
msgid "All files"
msgstr ""

#: src/Window.vala:235
#: src/Window.vala:398
msgid "Video files"
msgstr ""

#: src/Window.vala:241
#: src/Window.vala:404
msgid "Audio files"
msgstr ""

#: src/Window.vala:264
#: src/Window.vala:442
msgid "Audio"
msgstr ""

#: src/Window.vala:281
#: src/Window.vala:459
msgid "Select"
msgstr ""

#: src/Window.vala:328
#: src/Window.vala:503
msgid "Convert"
msgstr ""

#: src/Window.vala:372
#: src/Window.vala:580 src/Window.vala:588
msgid "Audio folder location"
msgstr ""

#: src/Window.vala:596 src/Window.vala:636
msgid "Where you save the audio file"
msgstr ""

#: src/Window.vala:602
msgid "No Video file choosen…"
msgstr ""

#: src/Window.vala:374
#: src/Window.vala:604
msgid "Ready!"
msgstr ""

#: src/Window.vala:424
#: src/Window.vala:657
#, c-format
msgid "%s was convert into %s"
msgstr ""

#: src/Window.vala:426
#: src/Window.vala:659
#, c-format
msgid "Error while = convert %s into %s"
msgstr ""

#: src/Window.vala:438 src/Window.vala:130 src/Window.vala:449
#: src/Window.vala:234 src/Window.vala:667 src/Window.vala:695 src/Window.vala:681
msgid "Finished"
msgstr ""

#: src/Window.vala:440 src/Window.vala:466
#: src/Window.vala:683 src/Window.vala:712
msgid "Error"
msgstr ""

#: src/Window.vala:451 src/Window.vala:468
#: src/Window.vala:697 src/Window.vala:714
msgid "Automatic Close"
msgstr ""
77 changes: 56 additions & 21 deletions po/id.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: com.github.torikulhabib.mindi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-10-06 23:58-0600\n"
"PO-Revision-Date: 2018-11-20 18:55+0700\n"
"PO-Revision-Date: 2018-11-27 12:19+0700\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -64,88 +64,123 @@ msgstr "Tidak"
msgid "Yes"
msgstr "Ya"

#: src/Window.vala:51
#: src/Window.vala:78
msgid "Change"
msgstr "Ubah"

#: src/Window.vala:54 src/Window.vala:223 src/Window.vala:226
#: src/Window.vala:85 src/Window.vala:334 src/Window.vala:390
#: src/Window.vala:392 src/Window.vala:732
msgid "Open"
msgstr "Buka"

#: src/Window.vala:87
#: src/Window.vala:115
msgid "Light background"
msgstr "Latar belakag terang"

#: src/Window.vala:88
#: src/Window.vala:116
msgid "Dark background"
msgstr "Latar belakang hitam"

#: src/Window.vala:189
#: src/Window.vala:133 src/Window.vala:423 src/Window.vala:424
#: src/Window.vala:610
msgid "Location"
msgstr "Lokasi"

#: src/Window.vala:150
msgid "Notify"
msgstr "Pemberitahuan"

#: src/Window.vala:157
msgid "Open custom location"
msgstr ""

#: src/Window.vala:169
msgid "Close"
msgstr "Tutup"

#: src/Window.vala:176
msgid "Find location"
msgstr "Temukan lokasi"

#: src/Window.vala:337
msgid "Folder"
msgstr "Map"

#: src/Window.vala:357
msgid "Video"
msgstr "Video"

#: src/Window.vala:205
#: src/Window.vala:373
msgid "Select Video"
msgstr "Pilih Video"

#: src/Window.vala:220
#: src/Window.vala:384
msgid "Choose a video file…"
msgstr "Pilih sebuah video…"

#: src/Window.vala:228 src/Window.vala:345
#: src/Window.vala:521 src/Window.vala:345
msgid "Cancel"
msgstr "Batal"

#: src/Window.vala:232
#: src/Window.vala:395
msgid "All files"
msgstr "Semua berkas"

#: src/Window.vala:235
#: src/Window.vala:398
msgid "Video files"
msgstr "Berkas video"

#: src/Window.vala:241
#: src/Window.vala:404
msgid "Audio files"
msgstr "Berkas Suara"

#: src/Window.vala:264
#: src/Window.vala:442
msgid "Audio"
msgstr "Suara"

#: src/Window.vala:281
#: src/Window.vala:459
msgid "Select"
msgstr "Pilih"

#: src/Window.vala:328
#: src/Window.vala:503
msgid "Convert"
msgstr "Konversi"

#: src/Window.vala:372
msgid "No Video file choosen…"
msgstr "Tidak ada berkas terpilih…"

#: src/Window.vala:374
#: src/Window.vala:580 src/Window.vala:588
msgid "Audio folder location"
msgstr "Temukan lokasi map"

#: src/Window.vala:596 src/Window.vala:636
msgid "Where you save the audio file"
msgstr "Diamana kamu menyimpan berkas"

#: src/Window.vala:604
msgid "Ready!"
msgstr "Siap!"

#: src/Window.vala:424
#: src/Window.vala:657
#, c-format
msgid "%s was convert into %s"
msgstr "%s sudah terkonversi %s"

#: src/Window.vala:426
#: src/Window.vala:659
#, c-format
msgid "Error while = convert %s into %s"
msgstr "Bermasalah selama = mengubah %s menjadi %s"

#: src/Window.vala:438 src/Window.vala:130 src/Window.vala:449
#: src/Window.vala:234 src/Window.vala:667 src/Window.vala:695
#: src/Window.vala:681
msgid "Finished"
msgstr "Selesai"

#: src/Window.vala:440 src/Window.vala:466
#: src/Window.vala:683 src/Window.vala:712
msgid "Error"
msgstr "Masalah"

#: src/Window.vala:451 src/Window.vala:468
#: src/Window.vala:697 src/Window.vala:714
msgid "Automatic Close"
msgstr "Otomatis tutup"
14 changes: 10 additions & 4 deletions src/Widgets/MessageDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,27 @@ public class Mindi.MessageDialog : Gtk.Dialog {

private class SingleWidgetBin : Gtk.Bin {}

public MessageDialog (string primary_text, string secondary_text, GLib.Icon image_icon, Gtk.ButtonsType buttons = Gtk.ButtonsType.CLOSE) {
public MessageDialog (Gtk.Window? parent, string primary_text, string secondary_text, GLib.Icon image_icon, Gtk.ButtonsType buttons = Gtk.ButtonsType.CLOSE) {
Object (
primary_text: primary_text,
secondary_text: secondary_text,
image_icon: image_icon,
buttons: buttons
buttons: buttons,
transient_for: parent,
destroy_with_parent: true,
window_position: Gtk.WindowPosition.CENTER_ON_PARENT
);
}

public MessageDialog.with_image_from_icon_name (string primary_text, string secondary_text, string image_icon_name = "dialog-information", Gtk.ButtonsType buttons = Gtk.ButtonsType.CLOSE) {
public MessageDialog.with_image_from_icon_name (Gtk.Window? parent, string primary_text, string secondary_text, string image_icon_name = "dialog-information", Gtk.ButtonsType buttons = Gtk.ButtonsType.CLOSE) {
Object (
primary_text: primary_text,
secondary_text: secondary_text,
image_icon: new ThemedIcon (image_icon_name),
buttons: buttons
buttons: buttons,
transient_for: parent,
destroy_with_parent: true,
window_position: Gtk.WindowPosition.CENTER_ON_PARENT
);
}

Expand Down
Loading

0 comments on commit b485be9

Please sign in to comment.