# Localising Hypha

**URL:** <https://we.hypha.app/t/localising-hypha/82>\
**Category:** Localisation\
**Created:** [June 8, 2021, 7:54pm UTC](https://we.hypha.app/t/localising-hypha/82 "2021-06-08T19:54:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernard](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bernard](https://we.hypha.app/u/bernard)\
**Post date:** [June 8, 2021, 7:54pm UTC](https://we.hypha.app/t/localising-hypha/82/1 "2021-06-08T19:54:47Z")

</div>

**(I’ve turned this post into a wiki post so anyone with a registered account can add to it by clicking edit.)**

I’ve contacted [Localisation Lab](https://www.localizationlab.org/) who are a well-respected and very experienced localisation and translation community for suggestions, advice on where to host Hypha localisation.

They have lots of experience and most importantly involve the communities and language speakers in the process. I’ve invited them to join we.hypha.

## What we should localise

Here’s my starter-proposal of what localisation we should support:

- the ability for the “internal user” to choose what language Hypha is displayed in
- language of UI text labels, interactive elements (buttons, check-boxes, dropdowns, etc )
- language of terminology used in Hypha; e.g. contract/grant/
- the translation of the forms that applicants will use to apply for funding
- others?

The following:

- date and time
- number formats
- currencies  
are [localised by editing base.py file](https://we.hypha.app/t/localising-hypha/82/8)

## Infrastructure possibilities

Most Open Source projects seem to use either Transifex, or Weblate (either self-hosted or [hosted.weblate.org](http://hosted.weblate.org)).

Which they choose is a decision based on factors like: we want to use 100% FOSS/decentralised/self-hosted/make it easier and host on paid platform.

### Practicalities of choosing infrastructure options

Below are the functions I think are most important for our translation work and how they compare across each option.

#### Weblate hosted “Basic”

Software price: €80 per month **or** €199 per year  
Number of source strings: 1,000  
Translation projects: 1  
Target languages: 15  
Number of translators: unlimited  
Translation components: unlimited

#### Transifex “Basic”

Software price: €19 per month **or** €840 per year  
Number of source strings: 50,000  
Translation projects: unlimited  
Target languages: 15  
Number of translators: 20  
Translation components: unlimited

#### Weblate Self-hosted

Software price: free (open source)  
Number of source strings: unlimited  
Translation projects: unlimited  
Target languages: unlimited  
Number of translators: unlimited  
Translation components: unlimited

## Decision

We’ve decided on using Weblate’s Basic service as:

- we have only 1 (at the moment!)
- a small number of strings to translate (~less then 1,000 strings)
- Weblate is used by many FOSS projects
- it gets thumbs up from the Localisation Lab community
- it is open source software itself

If we find that we need to translate more strings, then we can go up to the next level.

## Associated Github issue

> <https://github.com/HyphaApp/hypha/issues/2417>
>
> Discussion about localisation needs \[is happening in this we.hypha.app thread\](h…ttps://we.hypha.app/t/localising-hypha/82/3).
> 
> Right now, this ticket is a holding ticket until we define what is needed.
> 
> \## Associated tickets
> \- \[\] Always make strings translatable with i18n https://github.com/HyphaApp/hypha/issues/2408
> \- \[x\] Add a setting for currency symbol https://github.com/HyphaApp/hypha/issues/2420

---

<div class="post-metadata">

**Author:** ![bernard](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bernard](https://we.hypha.app/u/bernard)\
**Post date:** [June 9, 2021, 9:51am UTC](https://we.hypha.app/t/localising-hypha/82/2 "2021-06-09T09:51:55Z")

</div>

The nice people at Localisation Lab got back to me.

Some basic numbers:

- 83% of the [projects they are translating](https://wiki.localizationlab.org/index.php/Projects) use Transifex,
- while 17% of them use Weblate
  - the vast majority use Weblates’s, [https://hosted.weblate.org](https://hosted.weblate.org) service,
  - with 2-3 using self-hosted weblate

---

<div class="post-metadata">

**Author:** ![allan](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@allan](https://we.hypha.app/u/allan)\
**Post date:** [June 9, 2021, 12:23pm UTC](https://we.hypha.app/t/localising-hypha/82/3 "2021-06-09T12:23:53Z")

</div>

@bernard Thank you for starting off this thread.

Multilingual hypha is one of the top priorities for DDP and I am very interested in looking into the possibilities and options we have be they technical or user workflows to make this happen.

It would also be great if localization interventons also consider date and time, number formats and currencies. I bring this up as @vinkthom pointed out an issue they have. It’s minor at the moment but might be problematic when things scale.

We changed the default currency for the DFF instance from USD to EURO. An applicant used the euro currency format `.` (full stop) instead of `,` (comma) for the thousands separator and the system read this as a decimal point. so a EUR 2.000,00 (integer 2 instead of 2000) budget was recorded.  
That said, this particular example I’m sure can be fixed by accepting only integer values in the form without decimal places and thousand separators

thanks

---

<div class="post-metadata">

**Author:** ![bernard](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bernard](https://we.hypha.app/u/bernard)\
**Post date:** [June 9, 2021, 12:50pm UTC](https://we.hypha.app/t/localising-hypha/82/4 "2021-06-09T12:50:49Z")

</div>

Hi @allan

Thanks for the example, makes total sense. You’re absolutely right - date, time, number formats and currencies must be included. I’ve added it to the suggested list above ⬆.

Is there anything missing there?

---

<div class="post-metadata">

**Author:** ![allan](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@allan](https://we.hypha.app/u/allan)\
**Post date:** [June 9, 2021, 12:57pm UTC](https://we.hypha.app/t/localising-hypha/82/5 "2021-06-09T12:57:53Z")

</div>

thanks @bernard it looks quite complete to me 🙂

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/we.hypha.app/frjo/32/5_2.png) [@frjo](https://we.hypha.app/u/frjo)\
**Post date:** [June 10, 2021, 7:54am UTC](https://we.hypha.app/t/localising-hypha/82/6 "2021-06-10T07:54:13Z")

</div>

> [@allan](#):
>
> We changed the default currency for the DFF instance from USD to EURO. An applicant used the euro currency format `.` (full stop) instead of `,` (comma) for the thousands separator and the system read this as a decimal point. so a EUR 2.000,00 (integer 2 instead of 2000) budget was recorded.

Is this with the “Requested amount” field?

> <https://github.com/HyphaApp/hypha/blob/01bacda9858f1381c46746bd84bf957a8d93e813/hypha/apply/funds/blocks.py#L35-L44>

I thought we made that one only accepts numbers.

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/we.hypha.app/frjo/32/5_2.png) [@frjo](https://we.hypha.app/u/frjo)\
**Post date:** [June 10, 2021, 8:24am UTC](https://we.hypha.app/t/localising-hypha/82/8 "2021-06-10T08:24:12Z")

</div>

> [@allan](#):
>
> It would also be great if localization interventons also consider date and time, number formats and currencies.

In `settings/base.py` you have settings for default date format. You can override them in a `settings/local.py` file.

We could make it possible to set them as environment variables as well.

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/we.hypha.app/frjo/32/5_2.png) [@frjo](https://we.hypha.app/u/frjo)\
**Post date:** [June 10, 2021, 11:21am UTC](https://we.hypha.app/t/localising-hypha/82/9 "2021-06-10T11:21:22Z")

</div>

PR that add a CURRENCY\_SYMBOL setting [Add a CURRENCY\_SYMBOL setting and implement it. Translatet string fou… by frjo · Pull Request #2422 · HyphaApp/hypha · GitHub](https://github.com/HyphaApp/hypha/pull/2422)

---

<div class="post-metadata">

**Author:** ![bernard](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bernard](https://we.hypha.app/u/bernard)\
**Post date:** [June 11, 2021, 7:28am UTC](https://we.hypha.app/t/localising-hypha/82/10 "2021-06-11T07:28:22Z")

</div>

@allan [Hypha 1.61.0 released](https://we.hypha.app/t/hypha-1-61-0-released/86)

---

<div class="post-metadata">

**Author:** ![allan](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@allan](https://we.hypha.app/u/allan)\
**Post date:** [June 11, 2021, 8:19am UTC](https://we.hypha.app/t/localising-hypha/82/11 "2021-06-11T08:19:22Z")

</div>

Brilliant! \<3

thanks @frjo and @bernard
