Skip to content

Commit

Permalink
fix typos and code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
amit9838 committed Sep 8, 2024
1 parent 5ce7581 commit 955b24f
Show file tree
Hide file tree
Showing 17 changed files with 129 additions and 116 deletions.
136 changes: 66 additions & 70 deletions po/mousam.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-30 11:40+0530\n"
"POT-Creation-Date: 2024-09-08 10:02+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -23,7 +23,7 @@ msgid "Mousam"
msgstr ""

#: data/io.github.amit9838.mousam.desktop.in:5
#: data/io.github.amit9838.mousam.appdata.xml.in:7 src/windowAbout.py:13
#: data/io.github.amit9838.mousam.appdata.xml.in:7 src/windowAbout.py:16
msgid "Weather at a glance"
msgstr ""

Expand Down Expand Up @@ -242,23 +242,23 @@ msgstr ""
msgid "Thunderstorm with Hail"
msgstr ""

#: src/frontendCardAirPollution.py:43
#: src/frontendCardAirPollution.py:44
msgid "Air Pollution"
msgstr ""

#: src/frontendCardAirPollution.py:53
#: src/frontendCardAirPollution.py:54
msgid "United States AQI standard"
msgstr ""

#: src/frontendCardDayNight.py:66
#: src/frontendCardDayNight.py:68
msgid "Sunrise & Sunset"
msgstr ""

#: src/frontendCardDayNight.py:77
#: src/frontendCardDayNight.py:79
msgid "Sunrise"
msgstr ""

#: src/frontendCardDayNight.py:90
#: src/frontendCardDayNight.py:92
msgid "Sunset"
msgstr ""

Expand Down Expand Up @@ -290,11 +290,11 @@ msgstr ""
msgid "West"
msgstr ""

#: src/frontendCardSquare.py:170 src/mousam.py:279
#: src/frontendCardSquare.py:170 src/mousam.py:278
msgid "Northwest"
msgstr ""

#: src/frontendCardSquare.py:180 src/frontendHourlyDetails.py:61
#: src/frontendCardSquare.py:180 src/frontendHourlyDetails.py:60
msgid "Wind"
msgstr ""

Expand All @@ -310,79 +310,75 @@ msgstr ""
msgid "UV Index"
msgstr ""

#: src/frontendCurrentCond.py:86
#: src/frontendCurrentCond.py:87
#, python-brace-format
msgid "Feels Like • <b> {0} {1}</b>"
msgid "Feels like • <b> {0} {1}</b>"
msgstr ""

#: src/frontendForecast.py:36 src/frontendForecast.py:134
#: src/frontendForecast.py:36 src/frontendForecast.py:141
msgid "Tomorrow"
msgstr ""

#: src/frontendForecast.py:43
msgid "Weekly"
msgstr ""

#: src/frontendForecast.py:132
#: src/frontendForecast.py:136
msgid "Today"
msgstr ""

#: src/frontendHourlyDetails.py:53
#: src/frontendHourlyDetails.py:52
msgid "Hourly"
msgstr ""

#: src/frontendHourlyDetails.py:69
#: src/frontendHourlyDetails.py:68
msgid "Precipitation"
msgstr ""

#: src/frontendHourlyDetails.py:98
#: src/frontendHourlyDetails.py:99
msgctxt "wind"
msgid "Day High"
msgid "Day High"
msgstr ""

#: src/frontendHourlyDetails.py:114
#: src/frontendHourlyDetails.py:115
msgctxt "temperature"
msgid "Day Max"
msgid "Day Max"
msgstr ""

#: src/frontendHourlyDetails.py:126
#: src/frontendHourlyDetails.py:127
msgctxt "precipitation"
msgid "Day High"
msgid "Day High"
msgstr ""

#: src/frontendHourlyDetails.py:165
#: src/frontendHourlyDetails.py:166
msgid "No precipitation today !"
msgstr ""

#: src/frontendHourlyDetails.py:166
#: src/frontendHourlyDetails.py:167
msgid "No precipitation expected today!"
msgstr ""

#: src/frontendHourlyDetails.py:167
#: src/frontendHourlyDetails.py:168
msgid "Anticipate a precipitation-free day !"
msgstr ""

#: src/frontendHourlyDetails.py:168
#: src/frontendHourlyDetails.py:169
msgid "Enjoy a rain-free day today!"
msgstr ""

#: src/frontendHourlyDetails.py:169
#: src/frontendHourlyDetails.py:170
msgid "Umbrella status: resting. No precipitation in sight !"
msgstr ""

#: src/frontendHourlyDetails.py:170
#: src/frontendHourlyDetails.py:171
msgid "No rain in sight today!"
msgstr ""

#: src/frontendHourlyDetails.py:203
#: src/frontendHourlyDetails.py:204
msgid "Now"
msgstr ""

#: src/frontendUiDrawDayNight.py:97
msgid "Horizon"
msgstr ""

#: src/frontendUiDrawDayNight.py:107
msgid "Night"
msgstr ""

Expand All @@ -406,63 +402,63 @@ msgstr ""
msgid "Quit"
msgstr ""

#: src/mousam.py:151
#: src/mousam.py:148
msgid "Getting Weather Data"
msgstr ""

#: src/mousam.py:162
#: src/mousam.py:159
msgid "No Internet"
msgstr ""

#: src/mousam.py:166
#: src/mousam.py:163
msgid "Could not fetch data from API"
msgstr ""

#: src/mousam.py:278
#: src/mousam.py:277
msgid "From"
msgstr ""

#: src/mousam.py:280
#: src/mousam.py:279
msgid "N"
msgstr ""

#: src/mousam.py:290
#: src/mousam.py:289
msgid "Dewpoint"
msgstr ""

#: src/mousam.py:306
#: src/mousam.py:305
msgctxt "pressure card"
msgid "High"
msgstr ""

#: src/mousam.py:307
#: src/mousam.py:306
msgctxt "pressure card"
msgid "Low"
msgstr ""

#: src/mousam.py:316
#: src/mousam.py:315
msgctxt "uvindex card"
msgid "High"
msgstr ""

#: src/mousam.py:317
#: src/mousam.py:316
msgctxt "uvindex card"
msgid "Low"
msgstr ""

#: src/mousam.py:333
#: src/mousam.py:332
msgid "Switched to {}"
msgstr ""

#: src/mousam.py:336
#: src/mousam.py:335
msgid "Refreshed Successfully"
msgstr ""

#: src/mousam.py:346
#: src/mousam.py:345
msgid "Refresh within 5 seconds is ignored!"
msgstr ""

#: src/mousam.py:351
#: src/mousam.py:350
msgid "Refreshing..."
msgstr ""

Expand Down Expand Up @@ -575,11 +571,11 @@ msgstr ""
msgid "miles"
msgstr ""

#: src/windowAbout.py:17
#: src/windowAbout.py:20
msgid "Copyright © 2024 Mousam Developers"
msgstr ""

#: src/windowAbout.py:20
#: src/windowAbout.py:23
msgid "translator_credits"
msgstr ""

Expand Down Expand Up @@ -642,68 +638,68 @@ msgstr ""
msgid "No results found!"
msgstr ""

#: src/windowPreferences.py:25
#: src/windowPreferences.py:26
msgid "Appearance"
msgstr ""

#: src/windowPreferences.py:35
#: src/windowPreferences.py:36
msgid "Dynamic Background"
msgstr ""

#: src/windowPreferences.py:36
#: src/windowPreferences.py:37
msgid ""
"Background changes based on current weather condition (Restart required)"
"App background changes based on current weather conditions (restart required)"
msgstr ""

#: src/windowPreferences.py:49
#: src/windowPreferences.py:50
msgid "Time Format"
msgstr ""

#: src/windowPreferences.py:50
#: src/windowPreferences.py:51
msgid "Weather time format (Refresh required)"
msgstr ""

#: src/windowPreferences.py:59
#: src/windowPreferences.py:60
msgid "24 Hour"
msgstr ""

#: src/windowPreferences.py:66
#: src/windowPreferences.py:67
msgid "AM / PM"
msgstr ""

#: src/windowPreferences.py:81
#: src/windowPreferences.py:82
msgid "Units &amp; Measurements"
msgstr ""

#: src/windowPreferences.py:85
#: src/windowPreferences.py:86
msgid "°C"
msgstr ""

#: src/windowPreferences.py:86
msgid "METRIC system with units like celsius, km/h, kilometer"
#: src/windowPreferences.py:87
msgid "Metric system with units like Celsius, km/h, and kilometers"
msgstr ""

#: src/windowPreferences.py:94
#: src/windowPreferences.py:95
msgid "°F"
msgstr ""

#: src/windowPreferences.py:95
msgid "IMPERIAL system with units like fahrenheit, mph, miles"
#: src/windowPreferences.py:96
msgid "Imperial system with units like Fahrenheit, mph, and miles"
msgstr ""

#: src/windowPreferences.py:109
msgid "Show precipitation in inch"
#: src/windowPreferences.py:110
msgid "Precipitation in inches"
msgstr ""

#: src/windowPreferences.py:110
msgid "This option better works during heavy preciptaion (Refresh required)"
#: src/windowPreferences.py:111
msgid "This option works better in heavy precipitation (refresh required)"
msgstr ""

#: src/windowPreferences.py:139
msgid "Switching within 2 seconds is ignored!"
#: src/windowPreferences.py:140
msgid "Switching locations within 2 seconds is ignored"
msgstr ""

#: src/windowPreferences.py:142
#: src/windowPreferences.py:143
msgid "Switched to - {}"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion src/Models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Models for All weather data


class CurrentWeather:
total_instances = 0

Expand Down Expand Up @@ -34,7 +35,6 @@ def __init__(self, data) -> None:
hourly_data = data.get("hourly")

for field, values in hourly_data.items():

setattr(
self,
field,
Expand Down
2 changes: 2 additions & 0 deletions src/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from gettext import gettext as _

icon_loc = "@icon_location@/share/icons/hicolor/scalable/mousam_icons/"

icons = {
Expand Down
1 change: 1 addition & 0 deletions src/frontendCardAirPollution.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import time

from gi.repository import Gtk
from gettext import gettext as _, pgettext as C_

from .frontendUiDrawPollutionBar import PollutionBar
from .config import settings
Expand Down
1 change: 1 addition & 0 deletions src/frontendCardDayNight.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import gi

from gi.repository import Gtk
from gettext import gettext as _, pgettext as C_

from .frontendUiDrawDayNight import DrawDayNight
from .config import settings
Expand Down
1 change: 1 addition & 0 deletions src/frontendCardSquare.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from .config import settings
from .frontendUiDrawBar import DrawLevelBar
from .frontendUiDrawImageIcon import DrawImage
from gettext import gettext as _, pgettext as C_

gi.require_version("Gtk", "4.0")
gi.require_version("Adw", "1")
Expand Down
Loading

0 comments on commit 955b24f

Please sign in to comment.