Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions com.github.philip_scott.notes-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: io.elementary.Sdk

# This should match the exec line in your .desktop file and usually is the same
# as your app ID
command: com.github.philip_scott.notes-up
command: notes-up

# Here we can specify the kinds of permissions our app needs to run. Since we're
# not using hardware like webcams, making sound, or reading external files, we
Expand Down Expand Up @@ -61,4 +61,4 @@ modules:
buildsystem: meson
sources:
- type: dir
path: .
path: .
10 changes: 5 additions & 5 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ icon_sizes = ['48', '64']

foreach i : icon_sizes
install_data(
join_paths('icons', i, meson.project_name() + '.svg'),
join_paths('icons', i, APP_ID + '.svg'),
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps')
)
install_data(
join_paths('icons', i, meson.project_name() + '.svg'),
join_paths('icons', i, APP_ID + '.svg'),
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, '@2', 'apps')
)
endforeach

install_data(
meson.project_name() + '.gschema.xml',
APP_ID + '.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
)

Expand All @@ -26,8 +26,8 @@ i18n.merge_file(
)

i18n.merge_file(
input: meson.project_name() + '.appdata.xml.in',
output: meson.project_name() + '.appdata.xml',
input: APP_ID + '.appdata.xml.in',
output: APP_ID + '.appdata.xml',
po_dir: join_paths(meson.source_root(), 'po', 'extra'),
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[Desktop Entry]
Name=Notes-Up
Comment=Your markdown notebook
Exec=com.github.philip_scott.notes-up %u
Exec=notes-up %u
Icon=com.github.philip_scott.notes-up
Terminal=false
Type=Application
StartupNotify=true
Categories=Office;WordProcessor;
MimeType=application/x-notesup;
MimeType=application/x-notesup;
7 changes: 5 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
project('com.github.philip_scott.notes-up','vala', 'c', version: '2.7.0')
project('notes-up','vala', 'c', version: '2.7.0')

APP_ID = 'com.github.philip_scott.@0@'.format (meson.project_name())

gnome = import('gnome')
i18n = import('i18n')
Expand All @@ -9,7 +11,7 @@ add_global_arguments(
)

asresources = gnome.compile_resources(
'as-resources', join_paths('data', meson.project_name() + '.gresource.xml'),
'as-resources', join_paths('data', APP_ID + '.gresource.xml'),
source_dir: 'data',
c_name: 'as'
)
Expand All @@ -19,6 +21,7 @@ subdir('src')
executable(
meson.project_name(),
sources,
config,
asresources,
dependencies: [
dependency('granite'),
Expand Down
62 changes: 22 additions & 40 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ msgstr ""
"Project-Id-Version: com.github.philip_scott.notes-up\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-11-30 15:38+0100\n"
"PO-Revision-Date: 2019-04-02 18:31+0200\n"
"PO-Revision-Date: 2022-03-23 10:56+0100\n"
"Last-Translator: NathanBnm\n"
"Language-Team: Français\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 2.3\n"

#: src/Plugins/Break.vala:28
msgid "Page break when exporting to PDF: <break>"
Expand All @@ -27,7 +28,7 @@ msgstr "Saut de page"

#: src/Plugins/Break.vala:47
msgid "Page break on export: <break>"
msgstr "Saut de page en export : <break>"
msgstr "Saut de page à l'export : <break>"

#: src/Plugins/Color.vala:35
msgid ""
Expand All @@ -43,11 +44,11 @@ msgstr "Couleur de police"

#: src/Plugins/Highlight.vala:28 src/Widgets/HelpBox.vala:62
msgid "Enable Syntax Highlighting"
msgstr "Mise en surbrillance"
msgstr "Activer la coloration syntaxtique"

#: src/Plugins/Highlight.vala:32
msgid "Syntax Highlighing"
msgstr "Surbrillance"
msgstr "Coloration syntaxtique"

#: src/Plugins/Image.vala:28
msgid "Load an embeded image"
Expand Down Expand Up @@ -229,20 +230,19 @@ msgstr "Supprimer"

#: src/Widgets/Sidebar/NotebookItem.vala:53
msgid "Edit Section"
msgstr ""
msgstr "Modifier la section"

#: src/Widgets/Sidebar/NotebookItem.vala:54 src/Widgets/Headerbar.vala:354
msgid "New Section"
msgstr ""
msgstr "Nouvelle section"

#: src/Widgets/Sidebar/NotebookItem.vala:55
#, fuzzy
msgid "Delete Section"
msgstr "Supprimer la Page"
msgstr "Supprimer la section"

#: src/Widgets/Sidebar/NotebookItem.vala:56
msgid "Move Section"
msgstr ""
msgstr "Déplacer la section"

#: src/Widgets/Sidebar/NotebookList.vala:32
msgid "New Notebook"
Expand All @@ -262,7 +262,7 @@ msgstr "Étiquettes"

#: src/Widgets/Sidebar/Sidebar.vala:33
msgid "Sections"
msgstr ""
msgstr "Sections"

#: src/Widgets/Sidebar/Sidebar.vala:54
msgid "All Notes"
Expand All @@ -273,9 +273,8 @@ msgid "Not in a Notebook"
msgstr "Pas dans un Carnet de Notes"

#: src/Widgets/Sidebar/Sidebar.vala:260
#, fuzzy
msgid "My Notes"
msgstr "Toutes les Notes"
msgstr "Mes notes"

#: src/Widgets/Sidebar/TrashItem.vala:28
msgid "Restore"
Expand Down Expand Up @@ -347,23 +346,23 @@ msgstr "Changer de thème"

#: src/Widgets/Headerbar.vala:233
msgid "Show All"
msgstr ""
msgstr "Afficher tout"

#: src/Widgets/Headerbar.vala:234
msgid "Show Sections and Pages"
msgstr ""
msgstr "Afficher les sections et les pages"

#: src/Widgets/Headerbar.vala:235
msgid "Show Only Pages"
msgstr ""
msgstr "Afficher seulement les pages"

#: src/Widgets/Headerbar.vala:236
msgid "Hide All"
msgstr ""
msgstr "Masquer tout"

#: src/Widgets/Headerbar.vala:263
msgid "Panel Options"
msgstr ""
msgstr "Options des panneaux"

#: src/Widgets/Headerbar.vala:327
msgid "High Contrast"
Expand Down Expand Up @@ -484,12 +483,12 @@ msgstr "Couleur"
#: src/Widgets/PageInfoEditor.vala:71
#, c-format
msgid "Created: %s"
msgstr "Créé : %s"
msgstr "Créé le : %s"

#: src/Widgets/PageInfoEditor.vala:78
#, c-format
msgid "Updated: %s"
msgstr "Mis à jour : %s"
msgstr "Mis à jour le : %s"

#: src/Widgets/PageInfoEditor.vala:100
msgid "Not in Notebook"
Expand Down Expand Up @@ -544,7 +543,7 @@ msgstr "<Ctrl>Q"

#: src/Application.vala:42
msgid "<Ctrl><Shift>N"
msgstr "<Ctrl><Maj>N"
msgstr "<Ctrl><Shift>N"

#: src/Application.vala:43
msgid "<Ctrl>F"
Expand All @@ -568,17 +567,15 @@ msgstr "<Ctrl>T"

#: src/Application.vala:48
msgid "<Ctrl><Shift>I"
msgstr "<Ctrl><Maj>I"
msgstr "<Ctrl><Shift>I"

#: src/Application.vala:49
#, fuzzy
msgid "<Ctrl>P"
msgstr "<Ctrl>M"
msgstr "<Ctrl>P"

#: src/Application.vala:50
#, fuzzy
msgid "<Ctrl><Shift>P"
msgstr "<Ctrl><Maj>N"
msgstr "<Ctrl><Shift>N"

#: src/Application.vala:66
msgid "Notes-Up"
Expand All @@ -591,18 +588,3 @@ msgstr "Votre Carnet de Notes en Markdown."
#: src/Application.vala:68
msgid "About Notes"
msgstr "À Propos"

#~ msgid "Keep Sidebar Visible:"
#~ msgstr "Garder la barre latérale visible :"

#~ msgid "Edit Notebook"
#~ msgstr "Éditer le Carnet de Notes"

#~ msgid "Delete Notebook"
#~ msgstr "Supprimer le Carnet"

#~ msgid "Notebooks"
#~ msgstr "Carnets de Notes"

#~ msgid "My First Notebook"
#~ msgstr "Mon premier Carnet de Notes"
6 changes: 3 additions & 3 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ public class ENotes.Application : Granite.Application {
construct {
flags |= ApplicationFlags.HANDLES_OPEN;

application_id = "com.github.philip_scott.notes-up";
application_id = Constants.APP_ID;
program_name = PROGRAM_NAME;
exec_name = TERMINAL_NAME;
app_launcher = "com.github.philip_scott.notes-up";
exec_name = Constants.PROJECT_NAME;
app_launcher = Constants.APP_ID;

state = new State ();
}
Expand Down
10 changes: 10 additions & 0 deletions src/Constants.vala.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

namespace Constants {
public const string GETTEXT_PACKAGE = @GETTEXT_PACKAGE@;
public const string PROJECT_NAME = @PROJECT_NAME@;
public const string APP_ID = @APP_ID@;
public const string VERSION = @VERSION@;
public const string INSTALL_PREFIX = @PREFIX@;
public const string DATADIR = @DATADIR@;
public const string LOCALEDIR = @LOCALEDIR@;
}
14 changes: 7 additions & 7 deletions src/Main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
* Authored by: Felipe Escoto <[email protected]>
*/

public const string APP_NAME = "Notes-Up";
public const string TERMINAL_NAME = "notes-up";

public static int main (string[] args) {
/* Initiliaze gettext support */
Intl.setlocale (LocaleCategory.ALL, Intl.get_language_names ()[0]);
/* Initialize gettext support */
GLib.Intl.setlocale (LocaleCategory.ALL, "");
GLib.Intl.bindtextdomain (Constants.GETTEXT_PACKAGE, Constants.LOCALEDIR);
GLib.Intl.bind_textdomain_codeset (Constants.GETTEXT_PACKAGE, "UTF-8");
GLib.Intl.textdomain (Constants.GETTEXT_PACKAGE);

Environment.set_application_name (APP_NAME);
Environment.set_prgname (APP_NAME);
// Environment.set_application_name (Constants.PROJECT_NAME);
// Environment.set_prgname (Constants.PROJECT_NAME);

var application = new ENotes.Application ();

return application.run (args);
}


16 changes: 16 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@

conf = configuration_data()
conf.set_quoted('PROJECT_NAME', meson.project_name())
conf.set_quoted('APP_ID', APP_ID)
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('PREFIX', get_option('prefix'))
conf.set_quoted('DATADIR', join_paths (get_option('prefix'), get_option('datadir')))
conf.set_quoted('LOCALEDIR', join_paths (get_option('prefix'), get_option('localedir')))
config = configure_file(
input : 'Constants.vala.in',
output : 'Constants.vala',
configuration : conf
)


sources = files(
'Main.vala',
'Application.vala',
Expand Down