Skip to content
Snippets Groups Projects
Commit df2df22c authored by samuel's avatar samuel
Browse files

Version 3.0.2

parent 4f97ee2f
No related branches found
No related tags found
No related merge requests found
Pipeline #13999 failed
......@@ -39,8 +39,8 @@ jobs:
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "path=Luna3-${VERSION}.plasmoid" >> "$GITHUB_OUTPUT"
sed -Eie 's#"Version": "[0-9.]+",#"Version": "${{ github.ref }}",#' package/metadata.json
sed -Eie 's#refs/tags/v##' package/metadata.json
sed -Ei 's#"Version": "[0-9.]+",#"Version": "${{ github.ref }}",#' package/metadata.json
sed -Ei 's#refs/tags/v##' package/metadata.json
podman run \
--mount type=bind,src=${GITHUB_WORKSPACE},dst=/root/,Z \
--workdir=/root/ \
......
version 3.0.2 (2024-12-10)
- As of Plasma6, translations no longer need to be manually installed. Updated translation documentation to reflect this.
- Fixed bug where CI build systems create extra files.
version 3.0.1 (2024-12-05)
- Reworked JavaScript lunation code.
- Fixed errors due to time zone calculations.
- Condensed and cleaned up lunation logic and tooltip messages.
version 3.0.0 (2024-11-22)
- Ported plasmoid to Plasma 6.
version 2.1.2 (2019-10-13)
- localisation, hr (VladimirMikulic)
version 2.1.1 (2019-09-28)
......@@ -30,6 +44,7 @@ version 2.0.1 (2017-02-11)
- zip now now contains the content of the package directory
version 2.0 (2016-12-01)
- modified to be a Plasma 5 plasmoid
version 1.4 (2013-05-16):
- the dialog now scrolls in and out instead of just appearing or disappearing
when the plasmoid is added in a panel
......
......@@ -14,41 +14,49 @@ which is a port to Plasma 5 of Luna QML 1.4 (https://store.kde.org/p/1002036/)
Installation
------------
A. Command line, installs to ~/local/share/plasma/plasmoids
#### A. Command line, installs to `~/local/share/plasma/plasmoids`.
This works the same way as loading a new widget from "Add Widgets..."
Install: $ plasmapkg2 -i Luna3-<ver>.plasmoid
Install:
$ plasmapkg2 -i Luna3-<ver>.plasmoid
Update:
$ plasmapkg2 -u Luna3-<ver>.plasmoid
Uninstall:
$ plasmapkg2 -r org.kde.userbase.plasma.Luna3
Update: $ plasmapkg2 -u Luna3-<ver>.plasmoid
Uninstall: $ plasmapkg2 -r org.kde.userbase.plasma.Luna3
See README_TRANSLATIONS.md (Step 4) for installing localizations.
#### B. Command line, installs to `/usr/local/share/plasma/plasmoids`
B. Command line, installs to /usr/local/share/plasma/plasmoids
Install:
Install: # plasmapkg2 -g -i Luna3-<ver>.plasmoid
# plasmapkg2 -g -i Luna3-<ver>.plasmoid
Update: # plasmapkg2 -g -u Luna3-<ver>.plasmoid
Update:
Uninstall: # plasmapkg2 -g -r org.kde.userbase.plasma.Luna3
# plasmapkg2 -g -u Luna3-<ver>.plasmoid
Uninstall:
C. CMake, installs to /usr/local/share/plasma/plasmoids
# plasmapkg2 -g -r org.kde.userbase.plasma.Luna3
WARNING: this works but is not really maintained.
0. Unpack Luna3-<ver>.plasmoid - it's a zip file.
#### C. CMake, installs to `/usr/local/share/plasma/plasmoids`
0. Clone/download source from [Github](https://github.com/samuel-jimenez/Luna3) or
[opencode.net](https://www.opencode.net/samuel-jimenez/Luna3).
1. The top directory contains the CMakeLists.txt file
2. Create an empty directory, Luna3-plasmoid-build, and cd into it
3. Run: # cmake <path to source dir>
4. Run: # make install
2. Run: ``` # make install```
Custom Date Formats
-------------------
For example: dddd, dd-MM-yyyy => Saturday, 10-Dec-2016
For example: `dddd, dd-MM-yyyy` => Saturday, 10-Dec-2016
d the day as number without a leading zero (1 to 31)
dd the day as number with a leading zero (01 to 31)
......@@ -62,6 +70,7 @@ For example: dddd, dd-MM-yyyy => Saturday, 10-Dec-2016
yyyy the year as four digit number
In addition the following expressions can be used to specify the time:
h the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)
hh the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)
m the minute without a leading zero (0 to 59)
......@@ -79,9 +88,11 @@ License
Copyright 2019 Ismael <ismailof@github.com>
Copyright 2016, 2017 Bill Binder <dxtwjb@gmail.com>
Copyright (C) 2011, 2012, 2013 Glad Deschrijver <glad.deschrijver@gmail.com>
Copyright (C) 2024 Samuel Jimenez <therealsamueljimenez@gmail.com>
The JavaScript code is based on the C++ code of the original Luna plasmoid
in the KDE Plasma Workspace. This C++ code is licensed as follows:
Copyright 1996 Christopher Osburn <chris@speakeasy.org>
Copyright 1998,2000 Stephan Kulow <coolo@kde.org>
Copyright 2008 by Davide Bettio <davide.bettio@kdemail.net>
......@@ -91,14 +102,15 @@ Several fixes in the changes for 2.1 series were based on the Gealach plasmoid b
koffeinfriedhof <koffeinfriedhof@gmail.com>, in particular the resizing of the
LunaWidget when different date formats are selected.
The luna image, gskbyte13.svg, was extracted from the luna SVG file created by:
The luna image, `gskbyte13.svg`, was extracted from the luna SVG file created by:
Copyright 2009 Jose Alcala (project manager), Dan Gerhards (moon artwork),
Jeremy M. Todaro (shadows and layout)
(available at http://kde-look.org/content/show.php/luna.svgz+(full+SVG+image)?content=106013
original available at http://www.public-domain-photos.com/free-cliparts/science/astronomy/the_moon_dan_gerhards_01-5094.htm)
released in the public domain
The luna images, fife-moon.svg & full-moon-dark.svg, were generated from photos
The luna images, `fife-moon.svg` & `full-moon-dark.svg`, were generated from photos
by Bill Binder. Released 2017 under Creative Commons Attribution-ShareAlike 3.0
(http://creativecommons.org/licenses/by-sa/3.0/)
......@@ -111,16 +123,4 @@ This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Possible bug warning
--------------------
In contents/code/lunacalc.js a reasonable lower approximation for the number
of lunations since the New Moon of January 6, 2000 is calculated in order to
reduce the number of iterations in a costly while loop and thus speed up the
startup of the plasmoid. Since the lunation duration is not fixed, it may
happen that the calculated number of lunations is too high, and then the
plasmoid will display phases of the moon which are one month in the future.
Since the average lunation duration is used, this bug will only occasionaly
appear, if it appears at all. This can be solved by setting the variable
lunationDuration to a higher value (with the negative impact that the startup
of the plasmoid may be slower).
......@@ -7,12 +7,26 @@ translations for this plasmoid. If any of the instructions are unclear
or you encounter any difficulties please contact the author.
[Step 4](#step-4-install-the-mo-file) covers how to install existing translations.
Existing translations no longer need to be installed. If you previously installed them and are encountering problems, try removing them, e.g.,
```bash
rm /usr/share/locale/*/LC_MESSAGES/plasma_applet_org.kde.userbase.plasma.luna3.mo
rm ~/.local/share/locale/*/LC_MESSAGES/plasma_applet_org.kde.userbase.plasma.luna3.mo
```
---------------------------------------------
Step 1: Creating a new <locale>.po file
---------------------------------------------
First locate where the plasmoid has been installed.
If it was installed using Add Widgets menu, it will probably be:
`~/.local/share/plasma/plasmoids/org.kde.userbase.plasma.luna3/`
If you did a global install of the plasmoid, it's probably under:
`/usr/share/plasma/plasmoids/org.kde.userbase.plasma.luna3/`
Under the `po` folder, make a folder for the locale, e.g.: `fr/`
Make a copy of
......@@ -55,31 +69,31 @@ The .mo files are placed in the `locale` directory under `contents`,
e.g. `locale/fr/LC_MESSAGES/plasma_applet_org.kde.userbase.plasma.luna3.mo`
----------------------------
Step 4: Install the .mo file
Step 4: Test the .mo file
----------------------------
First locate where the plasmoid has been installed.
Finally, install the plasmoid and test your translations.
if it was installed using Add Widgets menu, it will probably be:
`~/.local/share/plasma/plasmoids/org.kde.userbase.plasma.luna3/`
Copy the `contents/locale` directory into `~/.local/share`.
Update the plasmoid installation:
```bash
plasmapkg2 -u package
```
If you did a global install of the plasmoid, it's probably under:
`/usr/share/plasma/plasmoids/org.kde.userbase.plasma.luna3/`
In this case, there will be a `/usr/share/locale` directory already;
copy the `contents/locale` directory into `/usr/share`.
Test your translations (if not part of configuration menu):
```bash
LANGUAGE=fr plasmawindowed -d org.kde.userbase.plasma.luna3
```
Logout and back in - it should pick up the translations.
Or simply logout and back in - it should pick up the translations.
----------------------------------------------------------
Step 5: Send the translation for inclusion with the widget
----------------------------------------------------------
Once you are happy with the translation please send the .po file to the
author along with translations for the following two strings (see
author along with translations for the following two strings for the "Add Widgets" screen (see
`metadata.json`):
For the "add widgets" screen:
"Luna 3"
"Display moon phases for your location"
- "Luna 3"
- "Display moon phases for your location"
Please send the translations for these two strings only when the
translation is not yet in `metadata.json`.
......
......@@ -73,7 +73,7 @@
"Name[uk]": "Луна 3",
"Name[x-test]": "xxLuna 3xx",
"Name[zh_CN]": "月相",
"Version": "3.0.1",
"Version": "3.0.2",
"Website": "http://userbase.kde.org/Plasma"
},
"X-Plasma-API-Minimum-Version": "6.0",
......
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
......@@ -9,6 +9,6 @@ VERSION=${1#v}
VERSION=${VERSION:?Must provide version number.}
shift
sed -Eie 's#"Version": "[0-9.]+",#"Version": "'"${VERSION}"'",#' package/metadata.json
sed -Ei 's#"Version": "[0-9.]+",#"Version": "'"${VERSION}"'",#' package/metadata.json
git commit -a -m "Version ${VERSION}"
git tag v${VERSION} $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment