Skip to Content Skip to Menu

[SOLVED] lacking translation in file upload function

  • staeren
  • staeren
  • OFFLINE
  • Posts: 63
  • Thanks: 1
  • Karma: 0
12 years 7 months ago - 12 years 4 months ago #201871 by staeren
hello, can you tell me where i can add a translation to dutch in file upload field function (frontend profile)? See screenshot please

Attachments:
Last edit: 12 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48743
  • Thanks: 8322
  • Karma: 1448
12 years 7 months ago #201892 by krileon
The below is the language string you'll need to add to your cbteamsplugin file of your language plugin.
Code:
'Your file must be of [ext] type and should exceed [min] KB, but not [max] KB' => 'Your file must be of [ext] type and should exceed [min] KB, but not [max] KB'


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • staeren
  • staeren
  • OFFLINE
  • Posts: 63
  • Thanks: 1
  • Karma: 0
12 years 7 months ago #202551 by staeren
when i uploaded a file, the file is correct displayed. how to remove the file? when i "click to edit" i have only 2 options: no update and file upload... (so no delete file or something)

Please Log in or Create an account to join the conversation.

  • staeren
  • staeren
  • OFFLINE
  • Posts: 63
  • Thanks: 1
  • Karma: 0
12 years 7 months ago #202553 by staeren
this works for upload file type, but when i try to translate "no change of image" it is not working?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48743
  • Thanks: 8322
  • Karma: 1448
12 years 7 months ago #202589 by krileon

when i uploaded a file, the file is correct displayed. how to remove the file? when i "click to edit" i have only 2 options: no update and file upload... (so no delete file or something)

Do you have the field set to required? If it's required then you can't remove a file, but can only replace it.

this works for upload file type, but when i try to translate "no change of image" it is not working?

Code:
'No change of file' => 'No change of file'

You can find additional language strings by editing the PHP file of the plugin and searching CBTxt. You can also use the awk script available in professional downloads section to parse for language strings.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • staeren
  • staeren
  • OFFLINE
  • Posts: 63
  • Thanks: 1
  • Karma: 0
12 years 4 months ago #210290 by staeren
hello, i found another message that is not translated to dutch. after logging in with an account that has not filled in all obligatory fields, i see the message:

Profile incomplete! Fields: Aanspreektitel, Straat en huisnummer, Postcode, Woonplaats, Telefoonnummer, Geboortedatum, Functie

how can i translate the words in bold? i added this to the file com_comprofiler/plugin/language/dutch/cbteamplugins_language.php

CBTxt::addStrings( array('Profile incomplete! Fields: ' => 'Gelieve eerst de volgende gegevens op uw profiel aan te vullen aub: '));

but this is not working...

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum