Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index General_Mobile during translations #10529

Closed
tassoman opened this issue Sep 20, 2016 · 2 comments
Closed

Undefined index General_Mobile during translations #10529

tassoman opened this issue Sep 20, 2016 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@tassoman
Copy link
Contributor

Hello there,
writing plugins you suggest to avoid adding strings then reusing already present strings.
I wrote a backporting MobileVsDestop plugin and I'm using:

  • General_Mobile
  • General_Desktop
  • General_Unknown

to refer to a translated string of device types.

The problem is I get a warning while visiting old stats. Any help is appreciated :)

screenshot6

@sgiehl
Copy link
Member

sgiehl commented Sep 20, 2016

Without knowing what exactly is in RerMobVsDesk.php line 51, it's hard to say what is going wrong. The translation key should still exist.

@tassoman
Copy link
Contributor Author

Foreach Device Family I found, I sum nb_visits by type. My reference is the old functions.php I've found in MobileVsDesktop plugin < 2.10.x

To fill types I'm using an array as matrix with the General_* string as key so I bet I'm trying to sum something not yet existent. Nevermind.

@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants