Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Commit

Permalink
Added DE translation
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVanAssche committed Jun 3, 2017
1 parent ba08152 commit b77a551
Show file tree
Hide file tree
Showing 14 changed files with 955 additions and 228 deletions.
8 changes: 1 addition & 7 deletions harbour-berail.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@ Type=Application
X-Nemo-Application-Type=silica-qt5
Icon=harbour-berail
Exec=harbour-berail
Name=harbour-berail
# translation example:
# your app name in German locale (de)
#
# Remember to comment out the following line, if you do not want to use
# a different app name in German locale (de).
Name[de]=harbour-berail
Name=BeRail
2 changes: 1 addition & 1 deletion harbour-berail.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.0.1, 2017-05-31T19:37:27. -->
<!-- Written by QtCreator 4.0.1, 2017-06-03T15:49:16. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down
Binary file modified icons/108x108/harbour-berail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/128x128/harbour-berail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/256x256/harbour-berail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/86x86/harbour-berail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion qml/backend/berail/sfos.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def launch_connection_dialog(self):
logger.log_to_file.debug("Connection selector dialog requested via DBUS")
return True
except OSError:
logger.log_to_file.trace("Tinder token not found in JSON data")
logger.log_to_file.trace("Connection selector dialog error")
return False

def notify_connection_state(self, status):
Expand Down
1 change: 1 addition & 0 deletions qml/pages/SettingsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import QtQuick 2.2
import Sailfish.Silica 1.0
import "./components"
import "./js/util.js" as Util

Page {

Expand Down
15 changes: 15 additions & 0 deletions qml/pages/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,18 @@ function covertMonth(month) {
function getYear() {
return date.getFullYear();
}

function getLocal(index) {
switch(index) {
case 0:
return "EN";
case 1:
return "NL";
case 2:
return "FR";
case 3:
return "DE";
default:
return "EN";
}
}
83 changes: 83 additions & 0 deletions rpm/harbour-berail.spec.1750
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.27
#

Name: harbour-berail

# >> macros
# << macros

%{!?qtc_qmake:%define qtc_qmake %qmake}
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: BeRail
Version: 1.0
Release: 1
Group: Qt/Qt
License: LICENSE
URL: http://example.org/
Source0: %{name}-%{version}.tar.bz2
Source100: harbour-berail.yaml
Requires: sailfishsilica-qt5 >= 0.10.9
BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: desktop-file-utils

%description
BeRail is a Sailfish OS application to plan your journeys on the Belgian railway.

%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qtc_qmake5

%qtc_make %{?_smp_mflags}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake5_install

# >> install post
# << install post

desktop-file-install --delete-original \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*.desktop

%files
%defattr(-,root,root,-)
%{_bindir}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
# >> files
# << files
%changelog
# Rename this file as harbour-berail.changes to include changelog
# entries in your RPM file.
#
# Add new changelog entries following the format below.
# Add newest entries to the top of the list.
# Separate entries from eachother with a blank line.

# * date Author's Name <author's email> version-release
# - Summary of changes

* Mon May 22 2017 Dylan Van Assche <dylan.van.assche@protonmail.com.com> 1.0-1
- Initial release
781 changes: 699 additions & 82 deletions store/harbour-berail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added store/storeBanner.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b77a551

Please sign in to comment.