kopia lustrzana https://gitlab.com/Zwarf/picplanner
Add translation functionality and add German language for testing
rodzic
9b23b4b206
commit
532b8b62a7
|
@ -81,17 +81,17 @@
|
|||
</requires>
|
||||
|
||||
<releases>
|
||||
<release date="2022-09-05" version="0.2.0">
|
||||
<release version="0.2.0" date="2022-09-05" >
|
||||
<description>
|
||||
<p>
|
||||
<ul>
|
||||
<li>Improve UI to fit better on mobile devices</li>
|
||||
<li>UI bug fixes</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p>UI improvements and smaller bug fixes</p>
|
||||
<ul>
|
||||
<li>Improve UI to fit better on mobile devices</li>
|
||||
<li>UI bug fixes</li>
|
||||
<li>Slight code improvements</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release date="2022-07-20" version="0.1.0">
|
||||
<release version="0.1.0" date="2022-07-20">
|
||||
<description>
|
||||
<p>
|
||||
First official release.
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
{
|
||||
"type" : "git",
|
||||
"url" : "https://gitlab.com/Zwarf/picplanner.git",
|
||||
"commit" : "17734a5a2dc8de13723af3a0a0a3c80f385904db"
|
||||
"commit" : "9b23b4b20615693383055fe999b27d5756eb7418"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
de
|
|
@ -0,0 +1,136 @@
|
|||
# /src/window/picplanner-window.ui
|
||||
|
||||
msgid "Search... City, Region, Country"
|
||||
msgstr "Suche... Stadt, Region, Land"
|
||||
|
||||
msgid "Coordinates"
|
||||
msgstr "Koordinaten"
|
||||
|
||||
msgid "North"
|
||||
msgstr "Nord"
|
||||
|
||||
msgid "East"
|
||||
msgstr "Ost"
|
||||
|
||||
msgid "Preferences"
|
||||
msgstr "Einstellungen"
|
||||
|
||||
msgid "About PicPlanner"
|
||||
msgstr "Info zu PicPlanner"
|
||||
|
||||
# /src/window/picplanner-window.ui
|
||||
# /src/window/overview-page/overview-view.ui
|
||||
|
||||
msgid "Overview"
|
||||
msgstr "Übersicht"
|
||||
|
||||
msgid "Sun"
|
||||
msgstr "Sonne"
|
||||
|
||||
msgid "Moon"
|
||||
msgstr "Mond"
|
||||
|
||||
msgid "Milky Way"
|
||||
msgstr "Milchstraße"
|
||||
|
||||
# /src/window/sun-page/sun-view.ui
|
||||
|
||||
msgid "Morning"
|
||||
msgstr "Morgen"
|
||||
|
||||
msgid "Rise"
|
||||
msgstr "Aufgang"
|
||||
|
||||
msgid "Dark Night End"
|
||||
msgstr "Dunkle Nacht Ende"
|
||||
|
||||
msgid "Blue Hour"
|
||||
msgstr "Blaue Stunde"
|
||||
|
||||
msgid "Golden Hour"
|
||||
msgstr "Goldene Stunde"
|
||||
|
||||
msgid "Noon"
|
||||
msgstr "Mittag"
|
||||
|
||||
msgid "Upper Culmination"
|
||||
msgstr "Obere Kulmination"
|
||||
|
||||
msgid "Evening"
|
||||
msgstr "Abend"
|
||||
|
||||
msgid "Set"
|
||||
msgstr "Untergang"
|
||||
|
||||
msgid "Dark Night Begin"
|
||||
msgstr "Dunkle Nacht Beginn"
|
||||
|
||||
msgid "Night"
|
||||
msgstr "Nacht"
|
||||
|
||||
msgid "Lower Culmination"
|
||||
msgstr "Untere Kulmination"
|
||||
|
||||
# /src/window/moon-page/moon-view.ui
|
||||
|
||||
msgid "Important Positions"
|
||||
msgstr "Relevante Positionen"
|
||||
|
||||
msgid "Lunar Phase"
|
||||
msgstr "Mondphase"
|
||||
|
||||
msgid "Illumination Intensity"
|
||||
msgstr "Erleuchtung"
|
||||
|
||||
msgid "Phase Trend"
|
||||
msgstr "Phasentrend"
|
||||
|
||||
# /src/window/milky-way-page/milky-way-view.ui
|
||||
|
||||
msgid "Visibility"
|
||||
msgstr "Sichtbarkeit"
|
||||
|
||||
msgid "No disturbance by Sun"
|
||||
msgstr "Keine Störung durch Sonne"
|
||||
|
||||
msgid "No disturbance by Moon"
|
||||
msgstr "Keine Störung durch Mond"
|
||||
|
||||
msgid "Milky Way clearly visible"
|
||||
msgstr "Milchstraße sichtbar"
|
||||
|
||||
msgid "Milky Way eventually visible"
|
||||
msgstr "Milchstraße eventuell sichtbar"
|
||||
|
||||
# /src/window/sun-page/sun-view.c
|
||||
msgid "Azimuth"
|
||||
msgstr "Azimut"
|
||||
|
||||
msgid "Elevation"
|
||||
msgstr "Höhe"
|
||||
|
||||
# /src/window/preferences-dialog/preferences-dialog.ui
|
||||
|
||||
msgid "Time"
|
||||
msgstr "Zeit"
|
||||
|
||||
msgid "Manual Time Zone"
|
||||
msgstr "Manuelle Zeitzohne"
|
||||
|
||||
msgid "Time Zone"
|
||||
msgstr "Zeitzohne"
|
||||
|
||||
msgid "Map"
|
||||
msgstr "Karte"
|
||||
|
||||
msgid "Metric Units"
|
||||
msgstr "Metrische Einheiten"
|
||||
|
||||
msgid "Imperial Units"
|
||||
msgstr "Angloamerikanische Einheiten"
|
||||
|
||||
msgid "General Appearance"
|
||||
msgstr "Erscheinungsbild"
|
||||
|
||||
msgid "Invert Color Scheme"
|
||||
msgstr "Farbschema Invertieren"
|
|
@ -22,6 +22,7 @@
|
|||
*/
|
||||
|
||||
#include "milky-way-view.h"
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
struct _PicplannerMilkyway
|
||||
|
@ -77,13 +78,13 @@ picplanner_milky_way_set_rise_upper_set (PicplannerMilkyway *milky_way,
|
|||
char_rise_time = g_strdup_printf ("%02d:%02d",
|
||||
g_date_time_get_hour (date_time_rise),
|
||||
g_date_time_get_minute (date_time_rise));
|
||||
char_rise_azimuth = g_strdup_printf ("Azimuth: %.0f\u00B0",
|
||||
char_rise_azimuth = g_strdup_printf ("%s: %.0f\u00B0", _("Azimuth"),
|
||||
coordinates_array[index_rise_upper_set[0]*2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
char_rise_time = g_strdup_printf ("--:--");
|
||||
char_rise_azimuth = g_strdup_printf ("Azimuth: -\u00B0");
|
||||
char_rise_azimuth = g_strdup_printf ("%s: -\u00B0", _("Azimuth"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -92,9 +93,9 @@ picplanner_milky_way_set_rise_upper_set (PicplannerMilkyway *milky_way,
|
|||
char_upper_time = g_strdup_printf ("%02d:%02d",
|
||||
g_date_time_get_hour (date_time_upper),
|
||||
g_date_time_get_minute (date_time_upper));
|
||||
char_upper_azimuth = g_strdup_printf ("Azimuth: %.0f\u00B0",
|
||||
char_upper_azimuth = g_strdup_printf ("%s: %.0f\u00B0", _("Azimuth"),
|
||||
coordinates_array[index_rise_upper_set[1]*2]);
|
||||
char_upper_elevation = g_strdup_printf ("Elevation: %.0f\u00B0",
|
||||
char_upper_elevation = g_strdup_printf ("%s: %.0f\u00B0", _("Elevation"),
|
||||
coordinates_array[index_rise_upper_set[1]*2+1]);
|
||||
|
||||
/*
|
||||
|
@ -105,13 +106,13 @@ picplanner_milky_way_set_rise_upper_set (PicplannerMilkyway *milky_way,
|
|||
char_set_time = g_strdup_printf ("%02d:%02d",
|
||||
g_date_time_get_hour (date_time_set),
|
||||
g_date_time_get_minute (date_time_set));
|
||||
char_set_azimuth = g_strdup_printf ("Azimuth: %.0f\u00B0",
|
||||
char_set_azimuth = g_strdup_printf ("%s: %.0f\u00B0", _("Azimuth"),
|
||||
coordinates_array[index_rise_upper_set[2]*2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
char_set_time = g_strdup_printf ("--:--");
|
||||
char_set_azimuth = g_strdup_printf ("Azimuth: -\u00B0");
|
||||
char_set_azimuth = g_strdup_printf ("%s: -\u00B0", _("Azimuth"));
|
||||
}
|
||||
|
||||
gtk_label_set_text (GTK_LABEL (milky_way->label_rise_time), char_rise_time);
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title">Important Positions</property>
|
||||
<property name="title" translatable="yes">Important Positions</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Rise</property>
|
||||
<property name="title" translatable="yes">Rise</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -54,7 +54,7 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Upper Culmination</property>
|
||||
<property name="title" translatable="yes">Upper Culmination</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -87,7 +87,7 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Set</property>
|
||||
<property name="title" translatable="yes">Set</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -116,10 +116,10 @@
|
|||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="margin-top">12</property>
|
||||
<property name="title">Visibility</property>
|
||||
<property name="title" translatable="yes">Visibility</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">No disturbance by Sun</property>
|
||||
<property name="title" translatable="yes">No disturbance by Sun</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -136,7 +136,7 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">No disturbance by Moon</property>
|
||||
<property name="title" translatable="yes">No disturbance by Moon</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -153,7 +153,7 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Milky Way clearly visible</property>
|
||||
<property name="title" translatable="yes">Milky Way clearly visible</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -170,7 +170,7 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Milky Way eventually visible</property>
|
||||
<property name="title" translatable="yes">Milky Way eventually visible</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
|
||||
#include "moon-view.h"
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
struct _PicplannerMoon
|
||||
|
@ -77,13 +78,13 @@ picplanner_moon_set_rise_upper_set (PicplannerMoon *moon,
|
|||
char_rise_time = g_strdup_printf ("%02d:%02d",
|
||||
g_date_time_get_hour (date_time_rise),
|
||||
g_date_time_get_minute (date_time_rise));
|
||||
char_rise_azimuth = g_strdup_printf ("Azimuth: %.0f\u00B0",
|
||||
char_rise_azimuth = g_strdup_printf ("%s: %.0f\u00B0", _("Azimuth"),
|
||||
coordinates_array[index_rise_upper_set[0]*2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
char_rise_time = g_strdup_printf ("--:--");
|
||||
char_rise_azimuth = g_strdup_printf ("Azimuth: -\u00B0");
|
||||
char_rise_azimuth = g_strdup_printf ("%s: -\u00B0", _("Azimuth"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -92,9 +93,9 @@ picplanner_moon_set_rise_upper_set (PicplannerMoon *moon,
|
|||
char_upper_time = g_strdup_printf ("%02d:%02d",
|
||||
g_date_time_get_hour (date_time_upper),
|
||||
g_date_time_get_minute (date_time_upper));
|
||||
char_upper_azimuth = g_strdup_printf ("Azimuth: %.0f\u00B0",
|
||||
char_upper_azimuth = g_strdup_printf ("%s: %.0f\u00B0", _("Azimuth"),
|
||||
coordinates_array[index_rise_upper_set[1]*2]);
|
||||
char_upper_elevation = g_strdup_printf ("Elevation: %.0f\u00B0",
|
||||
char_upper_elevation = g_strdup_printf ("%s: %.0f\u00B0", _("Elevation"),
|
||||
coordinates_array[index_rise_upper_set[1]*2+1]);
|
||||
|
||||
/*
|
||||
|
@ -105,13 +106,13 @@ picplanner_moon_set_rise_upper_set (PicplannerMoon *moon,
|
|||
char_set_time = g_strdup_printf ("%02d:%02d",
|
||||
g_date_time_get_hour (date_time_set),
|
||||
g_date_time_get_minute (date_time_set));
|
||||
char_set_azimuth = g_strdup_printf ("Azimuth: %.0f\u00B0",
|
||||
char_set_azimuth = g_strdup_printf ("%s %.0f\u00B0", _("Azimuth"),
|
||||
coordinates_array[index_rise_upper_set[2]*2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
char_set_time = g_strdup_printf ("--:--");
|
||||
char_set_azimuth = g_strdup_printf ("Azimuth: -\u00B0");
|
||||
char_set_azimuth = g_strdup_printf ("%s-\u00B0", _("Azimuth"));
|
||||
}
|
||||
|
||||
gtk_label_set_text (GTK_LABEL (moon->label_rise_time), char_rise_time);
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title">Important Positions</property>
|
||||
<property name="title" translatable="yes">Important Positions</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Rise</property>
|
||||
<property name="title" translatable="yes">Rise</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -54,7 +54,7 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Upper Culmination</property>
|
||||
<property name="title" translatable="yes">Upper Culmination</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -87,7 +87,7 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Set</property>
|
||||
<property name="title" translatable="yes">Set</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -116,10 +116,10 @@
|
|||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="margin-top">12</property>
|
||||
<property name="title">Lunar Phase</property>
|
||||
<property name="title" translatable="yes">Lunar Phase</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Illumination Intensity</property>
|
||||
<property name="title" translatable="yes">Illumination Intensity</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_illumination">
|
||||
<property name="label">---%</property>
|
||||
|
@ -130,7 +130,7 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Phase Trend</property>
|
||||
<property name="title" translatable="yes">Phase Trend</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_phase">
|
||||
<property name="label">--</property>
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwPreferencesRow">
|
||||
<property name="title">Basic Information</property>
|
||||
<property name="activatable">false</property>
|
||||
<child>
|
||||
<object class="GtkGrid">
|
||||
<property name="hexpand">true</property>
|
||||
|
@ -60,7 +58,7 @@
|
|||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Sun</property>
|
||||
<property name="label" translatable="yes">Sun</property>
|
||||
<property name="halign">start</property>
|
||||
<layout>
|
||||
<property name="column">1</property>
|
||||
|
@ -73,7 +71,7 @@
|
|||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Moon</property>
|
||||
<property name="label" translatable="yes">Moon</property>
|
||||
<property name="halign">start</property>
|
||||
<layout>
|
||||
<property name="column">1</property>
|
||||
|
@ -86,7 +84,7 @@
|
|||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Milky Way</property>
|
||||
<property name="label" translatable="yes">Milky Way</property>
|
||||
<property name="halign">start</property>
|
||||
<layout>
|
||||
<property name="column">1</property>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "calculations/calculations_milky_way.h"
|
||||
#include "search/search.h"
|
||||
#include <libgweather/gweather.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
/*
|
||||
* The time of no input of map movement that has to pass until a calculation of the positions
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<property name="margin-end">10</property>
|
||||
<property name="visible">true</property>
|
||||
<property name="can-focus">true</property>
|
||||
<property name="placeholder-text">Search... City, Region, Country</property>
|
||||
<property name="placeholder-text" translatable="yes">Search... City, Region, Country</property>
|
||||
<signal name="search-changed" handler="search_location"/>
|
||||
</object>
|
||||
</child>
|
||||
|
@ -127,11 +127,11 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwExpanderRow">
|
||||
<property name="title">Coordinates</property>
|
||||
<property name="title" translatable="yes">Coordinates</property>
|
||||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">North</property>
|
||||
<property name="title" translatable="yes">North</property>
|
||||
<child>
|
||||
<object class="GtkSpinButton" id="north_entry">
|
||||
<property name="halign">end</property>
|
||||
|
@ -146,7 +146,7 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">East</property>
|
||||
<property name="title" translatable="yes">East</property>
|
||||
<child>
|
||||
<object class="GtkSpinButton" id="east_entry">
|
||||
<property name="halign">end</property>
|
||||
|
@ -288,7 +288,7 @@
|
|||
<child>
|
||||
<object class="AdwViewStackPage" id="overview_page">
|
||||
<property name="name">page1</property>
|
||||
<property name="title">Overview</property>
|
||||
<property name="title" translatable="yes">Overview</property>
|
||||
<property name="child">overview_box</property>
|
||||
<property name="icon-name">emoji-recent-symbolic</property>
|
||||
</object>
|
||||
|
@ -296,7 +296,7 @@
|
|||
<child>
|
||||
<object class="AdwViewStackPage" id="sun_page">
|
||||
<property name="name">page2</property>
|
||||
<property name="title">Sun</property>
|
||||
<property name="title" translatable="yes">Sun</property>
|
||||
<property name="child">sun_box</property>
|
||||
<property name="icon-name">weather-clear-symbolic</property>
|
||||
</object>
|
||||
|
@ -304,7 +304,7 @@
|
|||
<child>
|
||||
<object class="AdwViewStackPage" id="moon_page">
|
||||
<property name="name">page3</property>
|
||||
<property name="title">Moon</property>
|
||||
<property name="title" translatable="yes">Moon</property>
|
||||
<property name="child">moon_box</property>
|
||||
<property name="icon-name">weather-clear-night-symbolic</property>
|
||||
</object>
|
||||
|
@ -312,7 +312,7 @@
|
|||
<child>
|
||||
<object class="AdwViewStackPage" id="milky_way_page">
|
||||
<property name="name">page4</property>
|
||||
<property name="title">Milky Way</property>
|
||||
<property name="title" translatable="yes">Milky Way</property>
|
||||
<property name="child">milky_way_box</property>
|
||||
<property name="icon-name">milky-way-symbolic</property>
|
||||
</object>
|
||||
|
@ -340,11 +340,11 @@
|
|||
<menu id="primary_menu">
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">_Preferences</attribute>
|
||||
<attribute name="label" translatable="yes">Preferences</attribute>
|
||||
<attribute name="action">app.preferences</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">_About PicPlanner</attribute>
|
||||
<attribute name="label" translatable="yes">About PicPlanner</attribute>
|
||||
<attribute name="action">app.about</attribute>
|
||||
</item>
|
||||
</section>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</object>
|
||||
|
||||
<template class="PicplannerPrefs" parent="GtkDialog">
|
||||
<property name="title">Preferences</property>
|
||||
<property name="title" translatable="yes">Preferences</property>
|
||||
<property name="resizable">1</property>
|
||||
<property name="modal">1</property>
|
||||
<property name="width-request">350</property>
|
||||
|
@ -21,11 +21,11 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title">Data settings</property>
|
||||
<property name="title" translatable="yes">Time</property>
|
||||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Manual Time Zone</property>
|
||||
<property name="title" translatable="yes">Manual Time Zone</property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="timezone_manual">
|
||||
<property name="can_focus">True</property>
|
||||
|
@ -40,7 +40,7 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwActionRow" id="timezone_row">
|
||||
<property name="title">Time Zone</property>
|
||||
<property name="title" translatable="yes">Time Zone</property>
|
||||
<property name="sensitive">false</property>
|
||||
<child>
|
||||
<object class="GtkSpinButton" id="timezone">
|
||||
|
@ -60,10 +60,10 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title">Map Settings</property>
|
||||
<property name="title" translatable="yes">Map</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Metric Unit</property>
|
||||
<property name="title" translatable="yes">Metric Units</property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="map_unit_metric">
|
||||
<property name="can_focus">True</property>
|
||||
|
@ -78,7 +78,7 @@
|
|||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="margin-top">10</property>
|
||||
<property name="title">Imperial Unit</property>
|
||||
<property name="title" translatable="yes">Imperial Units</property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="map_unit_imperial">
|
||||
<property name="can_focus">True</property>
|
||||
|
@ -96,10 +96,10 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title">General Appearance</property>
|
||||
<property name="title" translatable="yes">General Appearance</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Invert Color Scheme</property>
|
||||
<property name="title" translatable="yes">Invert Color Scheme</property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="invert_scheme">
|
||||
<property name="can_focus">True</property>
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
|
||||
#include "sun-view.h"
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
struct _PicplannerSun
|
||||
|
@ -97,13 +98,13 @@ picplanner_sun_set_rise_upper_set (PicplannerSun *sun,
|
|||
char_morning_rise_time = g_strdup_printf ("%02d:%02d",
|
||||
g_date_time_get_hour (date_time_rise),
|
||||
g_date_time_get_minute (date_time_rise));
|
||||
char_morning_rise_azimuth = g_strdup_printf ("Azimuth: %.0f\u00B0",
|
||||
char_morning_rise_azimuth = g_strdup_printf ("%s: %.0f\u00B0", _("Azimuth"),
|
||||
coordinates_array[index_rise_upper_set_lower[0]*2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
char_morning_rise_time = g_strdup_printf ("--:--");
|
||||
char_morning_rise_azimuth = g_strdup_printf ("Azimuth: -\u00B0");
|
||||
char_morning_rise_azimuth = g_strdup_printf ("%s: -\u00B0", _("Azimuth"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -112,9 +113,9 @@ picplanner_sun_set_rise_upper_set (PicplannerSun *sun,
|
|||
char_upper_time = g_strdup_printf ("%02d:%02d",
|
||||
g_date_time_get_hour (date_time_upper),
|
||||
g_date_time_get_minute (date_time_upper));
|
||||
char_upper_azimuth = g_strdup_printf ("Azimuth: %.0f\u00B0",
|
||||
char_upper_azimuth = g_strdup_printf ("%s: %.0f\u00B0", _("Azimuth"),
|
||||
coordinates_array[index_rise_upper_set_lower[1]*2]);
|
||||
char_upper_elevation = g_strdup_printf ("Elevation: %.0f\u00B0",
|
||||
char_upper_elevation = g_strdup_printf ("%s: %.0f\u00B0", _("Elevation"),
|
||||
coordinates_array[index_rise_upper_set_lower[1]*2+1]);
|
||||
|
||||
/*
|
||||
|
@ -125,13 +126,13 @@ picplanner_sun_set_rise_upper_set (PicplannerSun *sun,
|
|||
char_evening_set_time = g_strdup_printf ("%02d:%02d",
|
||||
g_date_time_get_hour (date_time_set),
|
||||
g_date_time_get_minute (date_time_set));
|
||||
char_evening_set_azimuth = g_strdup_printf ("Azimuth: %.0f\u00B0",
|
||||
char_evening_set_azimuth = g_strdup_printf ("%s: %.0f\u00B0", _("Azimuth"),
|
||||
coordinates_array[index_rise_upper_set_lower[2]*2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
char_evening_set_time = g_strdup_printf ("--:--");
|
||||
char_evening_set_azimuth = g_strdup_printf ("Azimuth: -\u00B0");
|
||||
char_evening_set_azimuth = g_strdup_printf ("%s: -\u00B0", _("Azimuth"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -140,9 +141,9 @@ picplanner_sun_set_rise_upper_set (PicplannerSun *sun,
|
|||
char_lower_time = g_strdup_printf ("%02d:%02d",
|
||||
g_date_time_get_hour (date_time_lower),
|
||||
g_date_time_get_minute (date_time_lower));
|
||||
char_lower_azimuth = g_strdup_printf ("Azimuth: %.0f\u00B0",
|
||||
char_lower_azimuth = g_strdup_printf ("%s: %.0f\u00B0", _("Azimuth"),
|
||||
coordinates_array[index_rise_upper_set_lower[3]*2]);
|
||||
char_lower_elevation = g_strdup_printf ("Elevation: %.0f\u00B0",
|
||||
char_lower_elevation = g_strdup_printf ("%s: %.0f\u00B0", _("Elevation"),
|
||||
coordinates_array[index_rise_upper_set_lower[3]*2+1]);
|
||||
|
||||
gtk_label_set_text (GTK_LABEL (sun->label_morning_rise_time), char_morning_rise_time);
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title">Morning</property>
|
||||
<property name="title" translatable="yes">Morning</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Rise</property>
|
||||
<property name="title" translatable="yes">Rise</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -53,7 +53,7 @@
|
|||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Dark Night End</property>
|
||||
<property name="title" translatable="yes">Dark Night End</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_morning_dark">
|
||||
<property name="label">06:00</property>
|
||||
|
@ -63,7 +63,7 @@
|
|||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Blue Hour</property>
|
||||
<property name="title" translatable="yes">Blue Hour</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_morning_blue">
|
||||
<property name="label">06:30 - 07:30</property>
|
||||
|
@ -73,7 +73,7 @@
|
|||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Golden Hour</property>
|
||||
<property name="title" translatable="yes">Golden Hour</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_morning_golden">
|
||||
<property name="label">07:30 - 08:30</property>
|
||||
|
@ -88,10 +88,10 @@
|
|||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="margin-top">12</property>
|
||||
<property name="title">Noon</property>
|
||||
<property name="title" translatable="yes">Noon</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Upper Culmination</property>
|
||||
<property name="title" translatable="yes">Upper Culmination</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -131,10 +131,10 @@
|
|||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="margin-top">12</property>
|
||||
<property name="title">Evening</property>
|
||||
<property name="title" translatable="yes">Evening</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Set</property>
|
||||
<property name="title" translatable="yes">Set</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -158,7 +158,7 @@
|
|||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Golden Hour</property>
|
||||
<property name="title" translatable="yes">Golden Hour</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_evening_golden">
|
||||
<property name="label">19:30 - 20:30</property>
|
||||
|
@ -168,7 +168,7 @@
|
|||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Blue Hour</property>
|
||||
<property name="title" translatable="yes">Blue Hour</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_evening_blue">
|
||||
<property name="label">20:30 - 21:30</property>
|
||||
|
@ -178,7 +178,7 @@
|
|||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Dark Night Begin</property>
|
||||
<property name="title" translatable="yes">Dark Night Begin</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label_evening_dark">
|
||||
<property name="label">22:00</property>
|
||||
|
@ -193,10 +193,10 @@
|
|||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="margin-top">12</property>
|
||||
<property name="title">Night</property>
|
||||
<property name="title" translatable="yes">Night</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title">Lower Culmination</property>
|
||||
<property name="title" translatable="yes">Lower Culmination</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
|
Ładowanie…
Reference in New Issue