Home page and stocks panel translation fix; stocks panel decimal numbers fix

If poedit will ignore it - it's ok
19 дек. 2014 г. 17:40 пользователь "Giuseppe
Paoletti" <notifications@github.com> написал:
>
> In src/stockspanel.cpp:
>
> > @@ -957,7 +957,7 @@ void mmStocksPanel::enableEditDeleteButtons(bool en)
> >      attachment_button_->Enable(en);
> >      if (!en)
> >      {
> > -        stock_details_->SetLabelText(STOCKTIPS[rand() %
(sizeof(STOCKTIPS) / sizeof(wxString))]);
> > +        stock_details_->SetLabelText(_(STOCKTIPS[rand() %
(sizeof(STOCKTIPS) / sizeof(wxString))]));
>
> _() and wxGetTranslation are both used in code for string translation, I
just used the first method. Don't know if there's a real difference
between. Il 19/12/2014 15:30, Nikolay ha scritto:
> …
> In src/stockspanel.cpp <
https://github.com/moneymanagerex/moneymanagerex/pull/314#discussion-diff-22106729>:
> @@ -957,7 +957,7 @@ void mmStocksPanel::enableEditDeleteButtons(bool en)
> attachment_button_->Enable(en); > if (!en) > { > -
stock_details_->SetLabelText(STOCKTIPS[rand() % (sizeof(STOCKTIPS) /
sizeof(wxString))]); > + stock_details_->SetLabelText(_(STOCKTIPS[rand() %
(sizeof(STOCKTIPS) / sizeof(wxString))])); What does it mean? may be
wxGetTranslation() ? — Reply to this email directly or view it on GitHub <
https://github.com/moneymanagerex/moneymanagerex/pull/314/files#r22106729>.
>
> —
> Reply to this email directly or view it on GitHub.