*

ebr15

  • **
  • 10 posts
Custom Field Translation
« on: January 15, 2026, 11:46:30 PM »
Hello everyone,

I'm trying to create a classifieds site with osclass. Everything's fine, but I created some custom fields. How can I translate them into different languages? I tried adding the translation to the theme's language files, but they aren't translated.
How do I translate custom field labels?

*

MB Themes

Re: Custom Field Translation
« Reply #1 on: January 16, 2026, 09:25:52 PM »
Osclass custom fields cannot be translated, it's their drawback.
Maybe... maybe it is possible to do like:
Code: [Select]
<?php echo __($custom_field_value, 'epsilon'); ?>
In theme and then manually add all possible combinations of $custom_field_value to .po file and translate it, then theoretically you might be able to translate it ;)  ... without manual entries to .po file, it is not possible to recognize these values.

Never tested, just idea.

Alternatively - use plugin that supports it, like https://osclasspoint.com/osclass-plugins/attributes-fields-maps/attributes-osclass-plugin-i77
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ebr15

  • **
  • 10 posts
Re: Custom Field Translation
« Reply #2 on: January 17, 2026, 09:47:01 PM »
But are these the files to edit?

item-edit.php
item-post.php

Or are there other ones?

*

MB Themes

Re: Custom Field Translation
« Reply #3 on: January 18, 2026, 01:22:57 PM »
No, item.php where you show values.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots