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

There are more files for the single language (id), please adjust the filemask and use components for translating different resources #5196

Closed
nicolabeghin opened this issue Jan 12, 2021 · 9 comments
Assignees
Labels
bug Something is broken.
Milestone

Comments

@nicolabeghin
Copy link

Hi everyone
I'm going crazy because I don't understand the reasoning behind this (documentation), if there's any at this point (:D)

I'm creating a new component through ZIP upload. These files are available in the ZIP:

  • testcomponent/resources/localization/productconfigaddon-locales.properties
  • testcomponent/resources/localization/productconfigaddon-locales_cs.properties
  • testcomponent/resources/localization/productconfigaddon-locales_de.properties
  • testcomponent/resources/localization/productconfigaddon-locales_es.properties
  • testcomponent/resources/localization/productconfigaddon-locales_fr.properties
  • testcomponent/resources/localization/productconfigaddon-locales_hi.properties
  • testcomponent/resources/localization/productconfigaddon-locales_hu.properties
  • testcomponent/resources/localization/productconfigaddon-locales_id.properties
  • testcomponent/resources/localization/productconfigaddon-locales_in.properties
  • testcomponent/resources/localization/productconfigaddon-locales_it.properties
  • testcomponent/resources/localization/productconfigaddon-locales_ja.properties
  • testcomponent/resources/localization/productconfigaddon-locales_ko.properties
  • testcomponent/resources/localization/productconfigaddon-locales_ms.properties
  • testcomponent/resources/localization/productconfigaddon-locales_pl.properties
  • testcomponent/resources/localization/productconfigaddon-locales_pt.properties
  • testcomponent/resources/localization/productconfigaddon-locales_ru.properties
  • testcomponent/resources/localization/productconfigaddon-locales_tr.properties
  • testcomponent/resources/localization/productconfigaddon-locales_vi.properties
  • testcomponent/resources/localization/productconfigaddon-locales_zh.properties

but it gets blocked like below:
image

As per #3952 I tried with both testcomponent/resources/localization/productconfigaddon-locales.properties and testcomponent/resources/localization/productconfigaddon-locales_en.properties but no luck with both.

Any hint is welcome!

thanks
nicola

@nicolabeghin
Copy link
Author

Hint: in and id lead to the same language (Hindi, I assume), therefore removing one of the two changes the message. Problem is, it gets back to the infamous

There are more files for the single language (en), please adjust the filemask and use components for translating different resources

nijel added a commit that referenced this issue Jan 13, 2021
@nijel
Copy link
Member

nijel commented Jan 13, 2021

It doesn't matter whether there is productconfigaddon-locales.properties or productconfigaddon-locales_en.properties, but there should be only one of them (and that one should be configured as monolignual base file).

@nijel nijel added the question This is more a question for the support than an issue. label Jan 13, 2021
@github-actions
Copy link

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you!

@nicolabeghin
Copy link
Author

nicolabeghin commented Jan 13, 2021

We tried narrowing down to 1 language only (DE) and still not accepted, at this point something else must be the issue. I'm really near to give up, it makes no sense anymore :/

  • productconfigaddon/resources/localization/productconfigaddon-locales_de.properties
  • productconfigaddon/resources/localization/productconfigaddon-locales.properties

image

@nijel
Copy link
Member

nijel commented Jan 13, 2021

This happens on creating component via ZIP upload? I'm not sure if there is proper cleanup, so maybe there are stale files from previous attempts. Can you try changing the component slug?

@nicolabeghin
Copy link
Author

THAT MADE THE TRICK!!! so it was caching the previous ZIPs. It literally drove me crazy :D

@nijel nijel added bug Something is broken. and removed question This is more a question for the support than an issue. labels Jan 13, 2021
@nijel nijel self-assigned this Jan 13, 2021
@nijel nijel added this to the 4.5 milestone Jan 13, 2021
@nicolabeghin
Copy link
Author

Thanks a lot @nijel!!!

@nijel nijel closed this as completed in 488bff6 Jan 13, 2021
@nijel
Copy link
Member

nijel commented Jan 13, 2021

I've just added the cleanup to the file upload path.

@github-actions
Copy link

Thank you for your report, the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

nijel added a commit that referenced this issue Jan 14, 2021
Keeping around old files will not do anything good here.

Fixes #5196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

No branches or pull requests

2 participants