Skip to content

Commit 15ff51a

Browse files
committed
Spanish translations.
1 parent 0f7050e commit 15ff51a

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Immanuel is currently available in the following locales / languages:
2323

2424
* **en_US:** (default) US English
2525
* **pt_BR:** Brazilian Portuguese
26-
* Coming soon: Spanish translation
26+
* **es_ES:** Spanish
2727

28-
See [the documentation](https://github.com/theriftlab/immanuel-python/tree/v1.3.2/docs/5-settings.md#locale) on how to switch. The documentation itself is not currently available in other translations. To contribute translations, see [below](#contributions).
28+
See [the documentation](https://github.com/theriftlab/immanuel-python/tree/v1.3.2/docs/5-settings.md#locale) on how to switch. The documentation itself is not currently available in other translations. To contribute in-software translations, see [below](#contributions).
2929

3030
## Quick Start
3131

@@ -283,8 +283,8 @@ New translations for Immanuel's output are always welcome, although it is curren
283283

284284
* Fork the repo.
285285
* Create a branch named after the locale, eg. `translations/pr_BR` - locale names for various languages can be found online, for example [here](https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a), although you should use an underscore rather than a hyphen.
286-
* Create a subdirectory in `/immanuel/locales` named after your locale code, and another sub-directory under this called `LC_MESSAGES`.
287-
* Copy `locales/immanuel.pot` into the new `LC_MESSAGES` sub-directory and rename it `immanuel.po`.
286+
* Create a subdirectory named after your locale code in the existing `immanuel/locales` directory, and another sub-directory under this called `LC_MESSAGES`.
287+
* Copy `immanuel/locales/immanuel.pot` into the new `LC_MESSAGES` sub-directory and rename it `immanuel.po`.
288288
* Within `immanuel.po`, for every English word or sentence in a `msgid` string, if there is a direct translation in your language, enter it in the following empty `msgstr`. For gendered adjectives, you will need to add all gendered variants using `msgctxt` like this:
289289
```
290290
msgctxt "masculine"

docs/5-settings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ There are many detailed customizations for chart data, especially for aspect rul
7777
A string specifying the locale for all output on any subsequently-generated charts or chart subjects. Available options:
7878

7979
* `pt_BR` - Brazilian Portuguese
80+
* `es_ES` - Spanish
8081

8182
Default: `None` (effectively `en_US`)
8283

7.71 KB
Binary file not shown.

locales/es_ES/LC_MESSAGES/immanuel.po renamed to immanuel/locales/es_ES/LC_MESSAGES/immanuel.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ msgstr "ambíguo"
600600

601601
# For aspects, eg. Moon Sun Sextile within -05°42'03" (Separative, Associate)
602602
msgid "{active} {passive} {type} within {difference} ({movement}, {condition})"
603-
msgstr {type} entre {active} y {passive} dentro de {difference} ({movement}, {condition})"
603+
msgstr "{type} entre {active} y {passive} dentro de {difference} ({movement}, {condition})"
604604

605605
# For houses in signs, eg. 2nd House 17°59'40" in Aries
606606
msgid "{name} {longitude} in {sign}"

immanuel/tools/calculate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def object_movement_typical(object: dict) -> bool:
6262
""" Returns whether an object's movement is typical, ie. direct for planets,
6363
retrograde for nodes, stationary for Part of Fortune and eclipses. """
6464
if object['index'] in (chart.PARS_FORTUNA, chart.PRE_NATAL_SOLAR_ECLIPSE, chart.PRE_NATAL_LUNAR_ECLIPSE, chart.POST_NATAL_SOLAR_ECLIPSE, chart.POST_NATAL_SOLAR_ECLIPSE):
65-
return True
65+
return object['speed'] == 0.0
6666

6767
movement = object_movement(object)
6868
is_node = object['index'] in (chart.NORTH_NODE, chart.SOUTH_NODE, chart.TRUE_NORTH_NODE, chart.TRUE_SOUTH_NODE)

immanuel/tools/position.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ def sign(object: dict | float) -> int:
2626

2727

2828
def sign_longitude(object: dict | float) -> tuple:
29-
""" Returns the index of the zodiac sign the passed object
30-
belongs to, and the sign-specific longitude inside it. """
29+
""" Returns the sign-specific longitude. """
3130
return (object['lon'] if isinstance(object, dict) else object) % 30
3231

3332

0 commit comments

Comments
 (0)