goteo-legacy icon indicating copy to clipboard operation
goteo-legacy copied to clipboard

How to remove '&euro' from code?

Open dominick01234 opened this issue 10 years ago • 8 comments

Hello,

I removed almost all euro symbols from my goteo app, however, I can not seem to remove the euro symbol that is conjugated with an 'amount' invested. I've looked through the text.sql file but can not find it.

Specifically, the message from invest when the amount to be brought message is displayed. The html output shows '&euro'.

Is this located in some text table that I am missing? Or is it conjugated with $amount variable directly in the code somewhere?

Please help.

Thanks, Wes

dominick01234 avatar Aug 13 '14 19:08 dominick01234

It's harcoded on the view files. El 13/08/2014 21:48, "dominick01234" [email protected] escribió:

Hello,

I removed almost all euro symbols from my goteo app, however, I can not seem to remove the euro symbol that is conjugated with an 'amount' invested. I've looked through the text.sql file but can not find it.

Specifically, the message from invest when the amount to be brought message is displayed. The html output shows '&euro'.

Is this located in some text table that I am missing? Or is it conjugated with $amount variable directly in the code somewhere?

Please help.

Thanks, Wes

— Reply to this email directly or view it on GitHub https://github.com/Goteo/Goteo/issues/127.

jcanaves avatar Aug 13 '14 20:08 jcanaves

Ok thank you!

On Wednesday, August 13, 2014, Julián Cánaves [email protected] wrote:

It's harcoded on the view files. El 13/08/2014 21:48, "dominick01234" <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> escribió:

Hello,

I removed almost all euro symbols from my goteo app, however, I can not seem to remove the euro symbol that is conjugated with an 'amount' invested. I've looked through the text.sql file but can not find it.

Specifically, the message from invest when the amount to be brought message is displayed. The html output shows '&euro'.

Is this located in some text table that I am missing? Or is it conjugated with $amount variable directly in the code somewhere?

Please help.

Thanks, Wes

— Reply to this email directly or view it on GitHub https://github.com/Goteo/Goteo/issues/127.

— Reply to this email directly or view it on GitHub https://github.com/Goteo/Goteo/issues/127#issuecomment-52105932.

dominick01234 avatar Aug 13 '14 21:08 dominick01234

Hi again, I have searched many of the view files but can not find where '&euro' is hard coded.

I am looking specifically for the message displayed on the user/login page, 'user-login-required-login. You're going to bring 100€'

Do you happen to know where this '&euro' is hard coded? The 'You're going to bring' is from the 'texts' table, but clearly the $amount and '&euro' is conjugated somewhere else when the 'message' is created.

Thanks again.

dominick01234 avatar Aug 14 '14 02:08 dominick01234

That is on controller/user login method. The amount received from the invest page POST is set into the $msg, harcoded on line 61. El 14/08/2014 04:51, "dominick01234" [email protected] escribió:

Hi again, I have searched many of the view files but can not find where '&euro' is hard coded.

I am looking specifically for the message displayed on the user/login page, 'user-login-required-login. You're going to bring 100€'

Do you happen to know where this '&euro' is hard coded? The 'You're going to bring' is from the 'texts' table, but clearly the $amount and '&euro' is conjugated somewhere else when the 'message' is created.

Thanks again.

— Reply to this email directly or view it on GitHub https://github.com/Goteo/Goteo/issues/127#issuecomment-52138200.

jcanaves avatar Aug 14 '14 07:08 jcanaves

Ah! Fantastic! Thank you!

Wes

On Thu, Aug 14, 2014 at 12:09 AM, Julián Cánaves [email protected] wrote:

That is on controller/user login method. The amount received from the invest page POST is set into the $msg, harcoded on line 61. El 14/08/2014 04:51, "dominick01234" [email protected] escribió:

Hi again, I have searched many of the view files but can not find where '&euro' is hard coded.

I am looking specifically for the message displayed on the user/login page, 'user-login-required-login. You're going to bring 100€'

Do you happen to know where this '&euro' is hard coded? The 'You're going to bring' is from the 'texts' table, but clearly the $amount and '&euro' is conjugated somewhere else when the 'message' is created.

Thanks again.

— Reply to this email directly or view it on GitHub https://github.com/Goteo/Goteo/issues/127#issuecomment-52138200.

— Reply to this email directly or view it on GitHub https://github.com/Goteo/Goteo/issues/127#issuecomment-52150689.

dominick01234 avatar Aug 14 '14 15:08 dominick01234

Couldn't the currency be made configurable? I'm trying to implement Goteo for an organization in Cameroon, but I guess it'll be tough to use CFA or XFA as currency?

psy-q avatar Aug 29 '14 12:08 psy-q

Right now, currency is soft-typed, it just change on display. On the inner system there is any defined currency.

We just started to analyse the development strategy for multi-currency on goteo.org, we cant ensure when will it get to this repository.

As we said to @dominick01234 regarding this matter, we'll welcome any shared approach.

goteo avatar Aug 29 '14 15:08 goteo

Configurable currency would be ideal for sure. However it's not that difficult to setup Goteo for any currency.

Here is a not so fancy method:

  1. delete the CSS/euro folder
  2. replace the '&euro' hard coded string in the view files and the invest.php file with your currency symbol.
  3. use number_format() where /amount is used for USD

Takes some time but doable.

On Friday, August 29, 2014, Psy-Q [email protected] wrote:

Couldn't the currency be made configurable? I'm trying to implement Goteo for an organization in Cameroon, but I guess it'll be tough to use CFA or XFA as currency?

— Reply to this email directly or view it on GitHub https://github.com/Goteo/Goteo/issues/127#issuecomment-53869226.

dominick01234 avatar Aug 29 '14 16:08 dominick01234